home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / GXPrinting.a < prev    next >
Text File  |  1996-05-01  |  76KB  |  2,715 lines

  1. ;
  2. ;    File:        GXPrinting.a
  3. ;
  4. ;    Contains:    This file contains all printing APIs except for driver/extension specific ones.
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__GXPRINTING__') = 'UNDEFINED' THEN
  19. __GXPRINTING__ SET 1
  20.  
  21.     IF &TYPE('__COLLECTIONS__') = 'UNDEFINED' THEN
  22.     include 'Collections.a'
  23.     ENDIF
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  28.     include 'Dialogs.a'
  29.     ENDIF
  30.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  31.     include 'Errors.a'
  32.     ENDIF
  33.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  34.     include 'Files.a'
  35.     ENDIF
  36.     IF &TYPE('__GXFONTS__') = 'UNDEFINED' THEN
  37.     include 'GXFonts.a'
  38.     ENDIF
  39.     IF &TYPE('__GXMATH__') = 'UNDEFINED' THEN
  40.     include 'GXMath.a'
  41.     ENDIF
  42.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  43.     include 'GXTypes.a'
  44.     ENDIF
  45.     IF &TYPE('__LISTS__') = 'UNDEFINED' THEN
  46.     include 'Lists.a'
  47.     ENDIF
  48.     IF &TYPE('__MENUS__') = 'UNDEFINED' THEN
  49.     include 'Menus.a'
  50.     ENDIF
  51.     IF &TYPE('__GXMESSAGES__') = 'UNDEFINED' THEN
  52.     include 'GXMessages.a'
  53.     ENDIF
  54.     IF &TYPE('__PRINTING__') = 'UNDEFINED' THEN
  55.     include 'Printing.a'
  56.     ENDIF
  57.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  58.     include 'Quickdraw.a'
  59.     ENDIF
  60.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  61. ;
  62. ;*******************************************************************
  63. ;                    Start of old "GXPrintingManager.h/a/p" interface file.
  64. ;            ********************************************************************
  65. ;
  66. ;
  67. ; ------------------------------------------------------------------------------
  68. ;
  69. ;                            Printing Manager API Contants and Types
  70. ;
  71. ;-------------------------------------------------------------------------------- 
  72. ;
  73. ;  QuickDraw GX Printing Manager & Overall GX Gestalt Selectors 
  74.  
  75. gestaltGXPrintingMgrVersion        EQU        'pmgr'
  76. gestaltGXVersion                EQU        'qdgx'
  77. ; typedef unsigned long                 gxOwnerSignature
  78.  
  79.     IF OLDROUTINENAMES THEN
  80. ; typedef unsigned long                 Signature
  81.  
  82.     ENDIF
  83. ;
  84. ;
  85. ;    ABSTRACT DATA TYPES
  86. ;
  87. ;
  88. ;
  89. ; typedef struct gxPrivatePrinterRecord *gxPrinter;
  90. ; typedef struct gxPrivateJobRecord *gxJob;
  91. ; typedef struct gxPrivateFormatRecord *gxFormat;
  92. ; typedef struct gxPrivatePaperTypeRecord *gxPaperType;
  93. ; typedef struct gxPrivatePrintFileRecord *gxPrintFile;
  94. ;
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. ;  Possible values for LoopStatus 
  106. ; typedef Boolean                         gxLoopStatus
  107.  
  108.  
  109. gxStopLooping                    EQU        0
  110. gxKeepLooping                    EQU        1
  111.     IF OLDROUTINENAMES THEN
  112. ; typedef GXViewDeviceProcPtr             gxViewDeviceProc
  113.  
  114. ; typedef GXFormatProcPtr                 gxFormatProc
  115.  
  116. ; typedef GXPaperTypeProcPtr             gxPaperTypeProc
  117.  
  118. ; typedef GXPrintingFlattenProcPtr         gxPrintingFlattenProc
  119.  
  120.     ENDIF
  121. ;
  122. ;    The following constants are used to set collection item flags in printing
  123. ;    collections. The Printing Manager purges certain items whenever a driver
  124. ;    switch occurs. If the formatting driver changes, all items marked as
  125. ;    gxVolatileFormattingDriverCategory will be purged.  If the output driver
  126. ;    changes, all items marked as gxVolatileOutputDriverCategory will be purged.
  127. ;    Note that to prevent items from being flattened when GXFlattenJob is called,
  128. ;    you should unset the collectionPersistenceBit (defined in Collections.h),
  129. ;    which is on by default.
  130. ;
  131. ;  Structure stored in collection items' user attribute bits 
  132. ; typedef short                         gxCollectionCategory
  133.  
  134.  
  135. gxNoCollectionCategory            EQU        $0000
  136. gxOutputDriverCategory            EQU        $0001
  137. gxFormattingDriverCategory        EQU        $0002
  138. gxDriverVolatileCategory        EQU        $0004
  139. gxVolatileOutputDriverCategory    EQU        $0005
  140. gxVolatileFormattingDriverCategory EQU    $0006
  141. ;
  142. ;
  143. ;    >>>>>> JOB COLLECTION ITEMS <<<<<<
  144. ;
  145. ;
  146. ;  gxJobInfo COLLECTION ITEM 
  147.  
  148. gxJobTag                        EQU        'job '
  149. gxJobInfo                RECORD 0
  150. numPages                 ds.l    1                ; offset: $0 (0)        ;  Number of pages in the document 
  151. priority                 ds.l    1                ; offset: $4 (4)        ;  Priority of this job plus "is it on hold?" 
  152. timeToPrint                 ds.l    1                ; offset: $8 (8)        ;  When to print job, if scheduled 
  153. jobTimeout                 ds.l    1                ; offset: $C (12)        ;  Timeout value, in ticks 
  154. firstPageToPrint         ds.l    1                ; offset: $10 (16)        ;  Start printing from this page 
  155. jobAlert                 ds.w    1                ; offset: $14 (20)        ;  How to alert user when printing 
  156. appName                     ds        Str31            ; offset: $16 (22)        ;  Which application printed the document 
  157. documentName             ds        Str31            ; offset: $36 (54)        ;  The name of the document being printed 
  158. userName                 ds        Str31            ; offset: $56 (86)        ;  The owner name of the machine that printed the document 
  159. sizeof                     EQU *                    ; size:   $76 (118)
  160.                         ENDR
  161. ;  gxPDDDefaultSettingTag COLLECTION ITEM 
  162.  
  163. gxPDDDefaultSettingTag            EQU        'pdds'
  164. gxPDDDefaultSettingInfo    RECORD 0
  165. useDefaultSetting         ds.b    1                ; offset: $0 (0)        ;  true if PDD default setting should be used 
  166. pad                         ds.b    1                ; offset: $1 (1)
  167. sizeof                     EQU *                    ; size:   $2 (2)
  168.                         ENDR
  169. ;  priority field constants 
  170.  
  171. gxPrintJobHoldingBit            EQU        $00001000            ; This bit is set if the job is on hold. 
  172.  
  173. gxPrintJobUrgent                EQU        $00000001
  174. gxPrintJobAtTime                EQU        $00000002
  175. gxPrintJobASAP                    EQU        $00000003
  176. gxPrintJobHolding                EQU        $00001003
  177. gxPrintJobHoldingAtTime            EQU        $00001002
  178. gxPrintJobHoldingUrgent            EQU        $00001001
  179. ;  jobAlert field constants 
  180.  
  181. gxNoPrintTimeAlert                EQU        0                    ; Don't alert user when we print 
  182. gxAlertBefore                    EQU        1                    ; Alert user before we print 
  183. gxAlertAfter                    EQU        2                    ; Alert user after we print 
  184. gxAlertBothTimes                EQU        3                    ; Alert before and after we print 
  185. ;  jobTimeout field constants 
  186.  
  187. gxThirtySeconds                    EQU        1800                ; 30 seconds in ticks 
  188. gxTwoMinutes                    EQU        7200                ; 2 minutes in ticks 
  189. ;  gxCollationTag COLLECTION ITEM 
  190.  
  191. gxCollationTag                    EQU        'sort'
  192. gxCollationInfo            RECORD 0
  193. collation                 ds.b    1                ; offset: $0 (0)        ;  True if copies are to be collated 
  194. padByte                     ds.b    1                ; offset: $1 (1)
  195. sizeof                     EQU *                    ; size:   $2 (2)
  196.                         ENDR
  197. ;  gxCopiesTag COLLECTION ITEM 
  198.  
  199. gxCopiesTag                        EQU        'copy'
  200. gxCopiesInfo            RECORD 0
  201. copies                     ds.l    1                ; offset: $0 (0)        ;  Number of copies of the document to print 
  202. sizeof                     EQU *                    ; size:   $4 (4)
  203.                         ENDR
  204. ;  gxPageRangeTag COLLECTION ITEM 
  205.  
  206. gxPageRangeTag                    EQU        'rang'
  207. gxSimplePageRangeInfo    RECORD 0
  208. optionChosen             ds.b    1                ; offset: $0 (0)        ;  From options listed below 
  209. printAll                 ds.b    1                ; offset: $1 (1)        ;  True if user wants to print all pages 
  210. fromPage                 ds.l    1                ; offset: $2 (2)        ;  For gxDefaultPageRange, current value 
  211. toPage                     ds.l    1                ; offset: $6 (6)        ;  For gxDefaultPageRange, current value 
  212. sizeof                     EQU *                    ; size:   $A (10)
  213.                         ENDR
  214. gxPageRangeInfo            RECORD 0
  215. simpleRange                 ds        gxSimplePageRangeInfo ; offset: $0 (0) ;  Info which will be returned for GetJobPageRange 
  216. fromString                 ds        Str31            ; offset: $A (10)        ;  For gxCustomizePageRange, current value 
  217. toString                 ds        Str31            ; offset: $2A (42)        ;  For gxCustomizePageRange, current value 
  218. minFromPage                 ds.l    1                ; offset: $4A (74)        ;  For gxDefaultPageRange, we parse with this, ignored if nil 
  219. maxToPage                 ds.l    1                ; offset: $4E (78)        ;  For gxDefaultPageRange, we parse with this, ignored if nil 
  220. replaceString             ds.b    1                ; offset: $52 (82) <-- really an array of length one ;  For gxReplacePageRange, string to display 
  221.                          ORG 84
  222. sizeof                     EQU *                    ; size:   $54 (84)
  223.                         ENDR
  224. ;  optionChosen field constants for SimplePageRangeInfo 
  225.  
  226. gxDefaultPageRange                EQU        0
  227. gxReplacePageRange                EQU        1
  228. gxCustomizePageRange            EQU        2
  229. ;  gxQualityTag COLLECTION ITEM 
  230.  
  231. gxQualityTag                    EQU        'qual'
  232. gxQualityInfo            RECORD 0
  233. disableQuality             ds.b    1                ; offset: $0 (0)        ;  True to disable standard quality controls 
  234. padByte                     ds.b    1                ; offset: $1 (1)
  235. defaultQuality             ds.w    1                ; offset: $2 (2)        ;  The default quality value 
  236. currentQuality             ds.w    1                ; offset: $4 (4)        ;  The current quality value 
  237. qualityCount             ds.w    1                ; offset: $6 (6)        ;  The number of quality menu items in popup menu 
  238. qualityNames             ds.b    1                ; offset: $8 (8) <-- really an array of length one ;  An array of packed pascal strings for popup menu titles 
  239.                          ORG 10
  240. sizeof                     EQU *                    ; size:   $A (10)
  241.                         ENDR
  242. ;  gxFileDestinationTag COLLECTION ITEM 
  243.  
  244. gxFileDestinationTag            EQU        'dest'
  245. gxFileDestinationInfo    RECORD 0
  246. toFile                     ds.b    1                ; offset: $0 (0)        ;  True if destination is a file 
  247. padByte                     ds.b    1                ; offset: $1 (1)
  248. sizeof                     EQU *                    ; size:   $2 (2)
  249.                         ENDR
  250. ;  gxFileLocationTag COLLECTION ITEM 
  251.  
  252. gxFileLocationTag                EQU        'floc'
  253. gxFileLocationInfo        RECORD 0
  254. fileSpec                 ds        FSSpec            ; offset: $0 (0)        ;  Location to put file, if destination is file 
  255. sizeof                     EQU *                    ; size:   $46 (70)
  256.                         ENDR
  257. ;  gxFileFormatTag COLLECTION ITEM 
  258.  
  259. gxFileFormatTag                    EQU        'ffmt'
  260. gxFileFormatInfo        RECORD 0
  261. fileFormatName             ds        Str31            ; offset: $0 (0)        ;  Name of file format (e.g. "PostScript") if destination is file 
  262. sizeof                     EQU *                    ; size:   $20 (32)
  263.                         ENDR
  264. ;  gxFileFontsTag COLLECTION ITEM 
  265.  
  266. gxFileFontsTag                    EQU        'incf'
  267. gxFileFontsInfo            RECORD 0
  268. includeFonts             ds.b    1                ; offset: $0 (0)        ;  Which fonts to include, if destination is file 
  269. padByte                     ds.b    1                ; offset: $1 (1)
  270. sizeof                     EQU *                    ; size:   $2 (2)
  271.                         ENDR
  272. ;  includeFonts field constants 
  273.  
  274. gxIncludeNoFonts                EQU        1                    ; Include no fonts 
  275. gxIncludeAllFonts                EQU        2                    ; Include all fonts 
  276. gxIncludeNonStandardFonts        EQU        3                    ; Include only fonts that aren't in the standard LW set 
  277. ;  gxPaperFeedTag COLLECTION ITEM 
  278.  
  279. gxPaperFeedTag                    EQU        'feed'
  280. gxPaperFeedInfo            RECORD 0
  281. autoFeed                 ds.b    1                ; offset: $0 (0)        ;  True if automatic feed, false if manual 
  282. padByte                     ds.b    1                ; offset: $1 (1)
  283. sizeof                     EQU *                    ; size:   $2 (2)
  284.                         ENDR
  285. ;  gxTrayFeedTag COLLECTION ITEM 
  286.  
  287. gxTrayFeedTag                    EQU        'tray'
  288. ; typedef long                             gxTrayIndex
  289.  
  290. gxTrayFeedInfo            RECORD 0
  291. feedTrayIndex             ds.l    1                ; offset: $0 (0)        ;  Tray to feed paper from 
  292. manualFeedThisPage         ds.b    1                ; offset: $4 (4)        ;  Signals manual feeding for the page 
  293. padByte                     ds.b    1                ; offset: $5 (5)
  294. sizeof                     EQU *                    ; size:   $6 (6)
  295.                         ENDR
  296. ;  gxManualFeedTag COLLECTION ITEM 
  297.  
  298. gxManualFeedTag                    EQU        'manf'
  299. gxManualFeedInfo        RECORD 0
  300. numPaperTypeNames         ds.l    1                ; offset: $0 (0)        ;  Number of paperTypes to manually feed 
  301. paperTypeNames             ds        Str31            ; offset: $4 (4) <-- really an array of length one ;  Array of names of paperTypes to manually feed 
  302. sizeof                     EQU *                    ; size:   $24 (36)
  303.                         ENDR
  304. ;  gxNormalMappingTag COLLECTION ITEM 
  305.  
  306. gxNormalMappingTag                EQU        'nmap'
  307. gxNormalMappingInfo        RECORD 0
  308. normalPaperMapping         ds.b    1                ; offset: $0 (0)        ;  True if not overriding normal paper mapping 
  309. padByte                     ds.b    1                ; offset: $1 (1)
  310. sizeof                     EQU *                    ; size:   $2 (2)
  311.                         ENDR
  312. ;  gxSpecialMappingTag COLLECTION ITEM 
  313.  
  314. gxSpecialMappingTag                EQU        'smap'
  315. gxSpecialMappingInfo    RECORD 0
  316. specialMapping             ds.b    1                ; offset: $0 (0)        ;  Enumerated redirect, scale or tile setting 
  317. padByte                     ds.b    1                ; offset: $1 (1)
  318. sizeof                     EQU *                    ; size:   $2 (2)
  319.                         ENDR
  320. ;  specialMapping field constants 
  321.  
  322. gxRedirectPages                    EQU        1                    ; Redirect pages to a papertype and clip if necessary 
  323. gxScalePages                    EQU        2                    ; Scale pages if necessary 
  324. gxTilePages                        EQU        3                    ; Tile pages if necessary 
  325. ;  gxTrayMappingTag COLLECTION ITEM 
  326.  
  327. gxTrayMappingTag                EQU        'tmap'
  328. gxTrayMappingInfo        RECORD 0
  329. mapPaperToTray             ds.l    1                ; offset: $0 (0)        ;  Tray to map all paper to 
  330. sizeof                     EQU *                    ; size:   $4 (4)
  331.                         ENDR
  332. ;  gxPaperMappingTag COLLECTION ITEM 
  333. ;  This collection item contains a flattened paper type resource 
  334.  
  335. gxPaperMappingTag                EQU        'pmap'
  336. ;  gxPrintPanelTag COLLECTION ITEM 
  337.  
  338. gxPrintPanelTag                    EQU        'ppan'
  339. gxPrintPanelInfo        RECORD 0
  340. startPanelName             ds        Str31            ; offset: $0 (0)        ;  Name of starting panel in Print dialog 
  341. sizeof                     EQU *                    ; size:   $20 (32)
  342.                         ENDR
  343. ;  gxFormatPanelTag COLLECTION ITEM 
  344.  
  345. gxFormatPanelTag                EQU        'fpan'
  346. gxFormatPanelInfo        RECORD 0
  347. startPanelName             ds        Str31            ; offset: $0 (0)        ;  Name of starting panel in Format dialog 
  348. sizeof                     EQU *                    ; size:   $20 (32)
  349.                         ENDR
  350. ;  gxTranslatedDocumentTag COLLECTION ITEM 
  351.  
  352. gxTranslatedDocumentTag            EQU        'trns'
  353. gxTranslatedDocumentInfo RECORD 0
  354. translatorInfo             ds.l    1                ; offset: $0 (0)        ;  Information from the translation process 
  355. sizeof                     EQU *                    ; size:   $4 (4)
  356.                         ENDR
  357. ;  gxCoverPageTag COLLECTION ITEM 
  358.  
  359. gxCoverPageTag                    EQU        'cvpg'
  360. gxCoverPageInfo            RECORD 0
  361. coverPage                 ds.l    1                ; offset: $0 (0)        ;  Use same enum values as for PrintRecord field in GXPrinterDrivers.h 
  362. sizeof                     EQU *                    ; size:   $4 (4)
  363.                         ENDR
  364. ;
  365. ;
  366. ;    >>>>>> FORMAT COLLECTION ITEMS <<<<<<
  367. ;
  368. ;
  369. ;  gxPaperTypeLockTag COLLECTION ITEM 
  370.  
  371. gxPaperTypeLockTag                EQU        'ptlk'
  372. gxPaperTypeLockInfo        RECORD 0
  373. paperTypeLocked             ds.b    1                ; offset: $0 (0)        ;  True if format's paperType is locked 
  374. padByte                     ds.b    1                ; offset: $1 (1)
  375. sizeof                     EQU *                    ; size:   $2 (2)
  376.                         ENDR
  377. ;  gxOrientationTag COLLECTION ITEM 
  378.  
  379. gxOrientationTag                EQU        'layo'
  380. gxOrientationInfo        RECORD 0
  381. orientation                 ds.b    1                ; offset: $0 (0)        ;  An enumerated orientation value 
  382. padByte                     ds.b    1                ; offset: $1 (1)
  383. sizeof                     EQU *                    ; size:   $2 (2)
  384.                         ENDR
  385. ;  orientation field constants 
  386.  
  387. gxPortraitLayout                EQU        0                    ; Portrait 
  388. gxLandscapeLayout                EQU        1                    ; Landscape 
  389. gxRotatedPortraitLayout            EQU        2                    ; Portrait, rotated 180∞ 
  390. gxRotatedLandscapeLayout        EQU        3                    ; Landscape, rotated 180∞  
  391. ;  gxScalingTag COLLECTION ITEM 
  392.  
  393. gxScalingTag                    EQU        'scal'
  394. gxScalingInfo            RECORD 0
  395. horizontalScaleFactor     ds.l    1                ; offset: $0 (0)        ;  Current horizontal scaling factor 
  396. verticalScaleFactor         ds.l    1                ; offset: $4 (4)        ;  Current vertical scaling factor 
  397. minScaling                 ds.w    1                ; offset: $8 (8)        ;  Minimum scaling allowed 
  398. maxScaling                 ds.w    1                ; offset: $A (10)        ;  Maximum scaling allowed 
  399. sizeof                     EQU *                    ; size:   $C (12)
  400.                         ENDR
  401. ;  gxDirectModeTag COLLECTION ITEM 
  402.  
  403. gxDirectModeTag                    EQU        'dirm'
  404. gxDirectModeInfo        RECORD 0
  405. directModeOn             ds.b    1                ; offset: $0 (0)        ;  True if a direct mode is enabled 
  406. padByte                     ds.b    1                ; offset: $1 (1)
  407. sizeof                     EQU *                    ; size:   $2 (2)
  408.                         ENDR
  409. ;  gxFormatHalftoneTag COLLECTION ITEM 
  410.  
  411. gxFormatHalftoneTag                EQU        'half'
  412. gxFormatHalftoneInfo    RECORD 0
  413. numHalftones             ds.l    1                ; offset: $0 (0)        ;  Number of halftone records 
  414. halftones                 ds        gxHalftone        ; offset: $4 (4) <-- really an array of length one ;  The halftone records 
  415. sizeof                     EQU *                    ; size:   $38 (56)
  416.                         ENDR
  417. ;  gxInvertPageTag COLLECTION ITEM 
  418.  
  419. gxInvertPageTag                    EQU        'invp'
  420. gxInvertPageInfo        RECORD 0
  421. padByte                     ds.b    1                ; offset: $0 (0)
  422. invert                     ds.b    1                ; offset: $1 (1)        ;  If true, invert page 
  423. sizeof                     EQU *                    ; size:   $2 (2)
  424.                         ENDR
  425. ;  gxFlipPageHorizontalTag COLLECTION ITEM 
  426.  
  427. gxFlipPageHorizontalTag            EQU        'flph'
  428. gxFlipPageHorizontalInfo RECORD 0
  429. padByte                     ds.b    1                ; offset: $0 (0)
  430. flipHorizontal             ds.b    1                ; offset: $1 (1)        ;  If true, flip x coordinates on page 
  431. sizeof                     EQU *                    ; size:   $2 (2)
  432.                         ENDR
  433. ;  gxFlipPageVerticalTag COLLECTION ITEM 
  434.  
  435. gxFlipPageVerticalTag            EQU        'flpv'
  436. gxFlipPageVerticalInfo    RECORD 0
  437. padByte                     ds.b    1                ; offset: $0 (0)
  438. flipVertical             ds.b    1                ; offset: $1 (1)        ;  If true, flip y coordinates on page 
  439. sizeof                     EQU *                    ; size:   $2 (2)
  440.                         ENDR
  441. ;  gxPreciseBitmapsTag COLLECTION ITEM 
  442.  
  443. gxPreciseBitmapsTag                EQU        'pbmp'
  444. gxPreciseBitmapInfo        RECORD 0
  445. preciseBitmaps             ds.b    1                ; offset: $0 (0)        ;  If true, scale page by 96% 
  446. padByte                     ds.b    1                ; offset: $1 (1)
  447. sizeof                     EQU *                    ; size:   $2 (2)
  448.                         ENDR
  449. ;
  450. ;
  451. ;    >>>>>> PAPERTYPE COLLECTION ITEMS <<<<<<
  452. ;
  453. ;
  454. ;  gxBaseTag COLLECTION ITEM 
  455.  
  456. gxBaseTag                        EQU        'base'
  457. gxBaseInfo                RECORD 0
  458. baseType                 ds.l    1                ; offset: $0 (0)        ;  PaperType's base type 
  459. sizeof                     EQU *                    ; size:   $4 (4)
  460.                         ENDR
  461. ;  baseType field constants 
  462.  
  463. gxUnknownBase                    EQU        0                    ; Base paper type from which this paper type is 
  464. gxUSLetterBase                    EQU        1                    ; derived.  This is not a complete set. 
  465. gxUSLegalBase                    EQU        2
  466. gxA4LetterBase                    EQU        3
  467. gxB5LetterBase                    EQU        4
  468. gxTabloidBase                    EQU        5
  469. ;  gxCreatorTag COLLECTION ITEM 
  470.  
  471. gxCreatorTag                    EQU        'crea'
  472. gxCreatorInfo            RECORD 0
  473. creator                     ds.l    1                ; offset: $0 (0)        ;  PaperType's creator 
  474. sizeof                     EQU *                    ; size:   $4 (4)
  475.                         ENDR
  476. ;  gxUnitsTag COLLECTION ITEM 
  477.  
  478. gxUnitsTag                        EQU        'unit'
  479. gxUnitsInfo                RECORD 0
  480. units                     ds.b    1                ; offset: $0 (0)        ;  PaperType's units (used by PaperType Editor). 
  481. padByte                     ds.b    1                ; offset: $1 (1)
  482. sizeof                     EQU *                    ; size:   $2 (2)
  483.                         ENDR
  484. ;  units field constants 
  485.  
  486. gxPicas                            EQU        0                    ; Pica measurement 
  487. gxMMs                            EQU        1                    ; Millimeter measurement 
  488. gxInches                        EQU        2                    ; Inches measurement 
  489. ;  gxFlagsTag COLLECTION ITEM 
  490.  
  491. gxFlagsTag                        EQU        'flag'
  492. gxFlagsInfo                RECORD 0
  493. flags                     ds.l    1                ; offset: $0 (0)        ;  PaperType's flags 
  494. sizeof                     EQU *                    ; size:   $4 (4)
  495.                         ENDR
  496. ;  flags field constants 
  497.  
  498. gxOldPaperTypeFlag                EQU        $00800000            ; Indicates a paper type for compatibility printing 
  499. gxNewPaperTypeFlag                EQU        $00400000            ; Indicates a paper type for QuickDraw GX-aware printing 
  500. gxOldAndNewFlag                    EQU        $00C00000            ; Indicates a paper type that's both old and new 
  501. gxDefaultPaperTypeFlag            EQU        $00100000            ; Indicates the default paper type in the group 
  502. ;  gxCommentTag COLLECTION ITEM 
  503.  
  504. gxCommentTag                    EQU        'cmnt'
  505. gxCommentInfo            RECORD 0
  506. comment                     ds        Str255            ; offset: $0 (0)        ;  PaperType's comment 
  507. sizeof                     EQU *                    ; size:   $100 (256)
  508.                         ENDR
  509. ;
  510. ;
  511. ;    >>>>>> PRINTER VIEWDEVICE TAGS <<<<<<
  512. ;
  513. ;
  514. ;  gxPenTableTag COLLECTION ITEM 
  515.  
  516. gxPenTableTag                    EQU        'pent'
  517. gxPenTableEntry            RECORD 0
  518. penName                     ds        Str31            ; offset: $0 (0)        ;  Name of the pen 
  519. penColor                 ds        gxColor            ; offset: $20 (32)        ;  Color to use from the color set 
  520. penThickness             ds.l    1                ; offset: $30 (48)        ;  Size of the pen 
  521. penUnits                 ds.w    1                ; offset: $34 (52)        ;  Specifies units in which pen thickness is defined 
  522. penPosition                 ds.w    1                ; offset: $36 (54)        ;  Pen position in the carousel, -1 (kPenNotLoaded) if not loaded 
  523. sizeof                     EQU *                    ; size:   $38 (56)
  524.                         ENDR
  525. gxPenTable                RECORD 0
  526. numPens                     ds.l    1                ; offset: $0 (0)        ;  Number of pen entries in the following array 
  527. pens                     ds        gxPenTableEntry ; offset: $4 (4) <-- really an array of length one ;  Array of pen entries 
  528. sizeof                     EQU *                    ; size:   $3C (60)
  529.                         ENDR
  530. ; typedef struct gxPenTable *            gxPenTablePtr
  531.  
  532. ; typedef gxPenTablePtr *                gxPenTableHdl
  533.  
  534. ;  penUnits field constants 
  535.  
  536. gxDeviceUnits                    EQU        0
  537. gxMMUnits                        EQU        1
  538. gxInchesUnits                    EQU        2
  539. ;  penPosition field constants 
  540.  
  541. gxPenNotLoaded                    EQU        -1
  542. ;
  543. ;
  544. ;    >>>>>> DIALOG-RELATED CONSTANTS AND TYPES <<<<<<
  545. ;
  546. ;
  547. ; typedef long                             gxDialogResult
  548.  
  549.  
  550. gxCancelSelected                EQU        0
  551. gxOKSelected                    EQU        1
  552. gxRevertSelected                EQU        2
  553. gxEditMenuRecord        RECORD 0
  554. editMenuID                 ds.w    1                ; offset: $0 (0)
  555. cutItem                     ds.w    1                ; offset: $2 (2)
  556. copyItem                 ds.w    1                ; offset: $4 (4)
  557. pasteItem                 ds.w    1                ; offset: $6 (6)
  558. clearItem                 ds.w    1                ; offset: $8 (8)
  559. undoItem                 ds.w    1                ; offset: $A (10)
  560. sizeof                     EQU *                    ; size:   $C (12)
  561.                         ENDR
  562. ;
  563. ;
  564. ;    >>>>>> JOB FORMAT MODE CONSTANTS AND TYPES <<<<<<
  565. ;
  566. ;
  567. ; typedef OSType                         gxJobFormatMode
  568.  
  569. gxJobFormatModeTable    RECORD 0
  570. numModes                 ds.l    1                ; offset: $0 (0)        ;  Number of job format modes to choose from 
  571. modes                     ds.l    1                ; offset: $4 (4) <-- really an array of length one ;  The job format modes 
  572. sizeof                     EQU *                    ; size:   $8 (8)
  573.                         ENDR
  574. ; typedef struct gxJobFormatModeTable *    gxJobFormatModeTablePtr
  575.  
  576. ; typedef gxJobFormatModeTablePtr *        gxJobFormatModeTableHdl
  577.  
  578.  
  579. gxGraphicsJobFormatMode            EQU        'grph'
  580. gxTextJobFormatMode                EQU        'text'
  581. gxPostScriptJobFormatMode        EQU        'post'
  582. ; typedef long                             gxQueryType
  583.  
  584.  
  585. gxGetJobFormatLineConstraintQuery EQU    0
  586. gxGetJobFormatFontsQuery        EQU        1
  587. gxGetJobFormatFontCommonStylesQuery EQU    2
  588. gxGetJobFormatFontConstraintQuery EQU    3
  589. gxSetStyleJobFormatCommonStyleQuery EQU    4
  590. ;  Structures used for Text mode field constants 
  591. gxPositionConstraintTable RECORD 0
  592. phase                     ds        gxPoint            ; offset: $0 (0)        ;  Position phase 
  593. offset                     ds        gxPoint            ; offset: $8 (8)        ;  Position offset 
  594. numSizes                 ds.l    1                ; offset: $10 (16)        ;  Number of available font sizes 
  595. sizes                     ds.l    1                ; offset: $14 (20) <-- really an array of length one ;  The available font sizes 
  596. sizeof                     EQU *                    ; size:   $18 (24)
  597.                         ENDR
  598. ; typedef struct gxPositionConstraintTable * gxPositionConstraintTablePtr
  599.  
  600. ; typedef gxPositionConstraintTablePtr * gxPositionConstraintTableHdl
  601.  
  602. ;  numSizes field constants 
  603.  
  604. gxConstraintRange                EQU        -1
  605. gxStyleNameTable        RECORD 0
  606. numStyleNames             ds.l    1                ; offset: $0 (0)        ;  Number of style names 
  607. styleNames                 ds        Str255            ; offset: $4 (4) <-- really an array of length one ;  The style names 
  608. sizeof                     EQU *                    ; size:   $104 (260)
  609.                         ENDR
  610. ; typedef struct gxStyleNameTable *        gxStyleNameTablePtr
  611.  
  612. ; typedef gxStyleNameTablePtr *            gxStyleNameTableHdl
  613.  
  614. gxFontTable                RECORD 0
  615. numFonts                 ds.l    1                ; offset: $0 (0)        ;  Number of font references 
  616. fonts                     ds.l    1                ; offset: $4 (4) <-- really an array of length one ;  The font references 
  617. sizeof                     EQU *                    ; size:   $8 (8)
  618.                         ENDR
  619. ; typedef struct gxFontTable *            gxFontTablePtr
  620.  
  621. ; typedef gxFontTablePtr *                gxFontTableHdl
  622.  
  623. ;
  624. ; ------------------------------------------------------------------------------
  625. ;
  626. ;                                Printing Manager API Functions
  627. ;
  628. ;-------------------------------------------------------------------------------- 
  629. ;
  630. ;
  631. ;    Global Routines
  632. ;
  633. ;
  634. ; pascal OSErr GXInitPrinting(void )
  635. ;
  636.     IF ¨ GENERATINGCFM THEN
  637.         Macro
  638.         _GXInitPrinting
  639.             move.l              #$00000000,D0
  640.             dc.w                $ABFE
  641.         EndM
  642.     ELSE
  643.         IMPORT_CFM_FUNCTION GXInitPrinting
  644.     ENDIF
  645.  
  646. ;
  647. ; pascal OSErr GXExitPrinting(void )
  648. ;
  649.     IF ¨ GENERATINGCFM THEN
  650.         Macro
  651.         _GXExitPrinting
  652.             move.l              #$00000001,D0
  653.             dc.w                $ABFE
  654.         EndM
  655.     ELSE
  656.         IMPORT_CFM_FUNCTION GXExitPrinting
  657.     ENDIF
  658.  
  659. ;
  660. ;    Error-Handling Routines
  661. ;
  662. ;
  663. ; pascal OSErr GXGetJobError(gxJob aJob)
  664. ;
  665.     IF ¨ GENERATINGCFM THEN
  666.         Macro
  667.         _GXGetJobError
  668.             move.l              #$0000000E,D0
  669.             dc.w                $ABFE
  670.         EndM
  671.     ELSE
  672.         IMPORT_CFM_FUNCTION GXGetJobError
  673.     ENDIF
  674.  
  675. ;
  676. ; pascal void GXSetJobError(gxJob aJob, OSErr anErr)
  677. ;
  678.     IF ¨ GENERATINGCFM THEN
  679.         Macro
  680.         _GXSetJobError
  681.             move.l              #$0000000F,D0
  682.             dc.w                $ABFE
  683.         EndM
  684.     ELSE
  685.         IMPORT_CFM_FUNCTION GXSetJobError
  686.     ENDIF
  687.  
  688. ;
  689. ;    Job Routines
  690. ;
  691. ;
  692. ; pascal OSErr GXNewJob(gxJob *aJob)
  693. ;
  694.     IF ¨ GENERATINGCFM THEN
  695.         Macro
  696.         _GXNewJob
  697.             move.l              #$00000002,D0
  698.             dc.w                $ABFE
  699.         EndM
  700.     ELSE
  701.         IMPORT_CFM_FUNCTION GXNewJob
  702.     ENDIF
  703.  
  704. ;
  705. ; pascal OSErr GXDisposeJob(gxJob aJob)
  706. ;
  707.     IF ¨ GENERATINGCFM THEN
  708.         Macro
  709.         _GXDisposeJob
  710.             move.l              #$00000003,D0
  711.             dc.w                $ABFE
  712.         EndM
  713.     ELSE
  714.         IMPORT_CFM_FUNCTION GXDisposeJob
  715.     ENDIF
  716.  
  717. ;
  718. ; pascal void GXFlattenJob(gxJob aJob, GXPrintingFlattenUPP flattenProc, void *aVoid)
  719. ;
  720.     IF ¨ GENERATINGCFM THEN
  721.         Macro
  722.         _GXFlattenJob
  723.             move.l              #$00000004,D0
  724.             dc.w                $ABFE
  725.         EndM
  726.     ELSE
  727.         IMPORT_CFM_FUNCTION GXFlattenJob
  728.     ENDIF
  729.  
  730. ;
  731. ; pascal gxJob GXUnflattenJob(gxJob aJob, GXPrintingFlattenUPP flattenProc, void *aVoid)
  732. ;
  733.     IF ¨ GENERATINGCFM THEN
  734.         Macro
  735.         _GXUnflattenJob
  736.             move.l              #$00000005,D0
  737.             dc.w                $ABFE
  738.         EndM
  739.     ELSE
  740.         IMPORT_CFM_FUNCTION GXUnflattenJob
  741.     ENDIF
  742.  
  743. ;
  744. ; pascal Handle GXFlattenJobToHdl(gxJob aJob, Handle aHdl)
  745. ;
  746.     IF ¨ GENERATINGCFM THEN
  747.         Macro
  748.         _GXFlattenJobToHdl
  749.             move.l              #$00000006,D0
  750.             dc.w                $ABFE
  751.         EndM
  752.     ELSE
  753.         IMPORT_CFM_FUNCTION GXFlattenJobToHdl
  754.     ENDIF
  755.  
  756. ;
  757. ; pascal gxJob GXUnflattenJobFromHdl(gxJob aJob, Handle aHdl)
  758. ;
  759.     IF ¨ GENERATINGCFM THEN
  760.         Macro
  761.         _GXUnflattenJobFromHdl
  762.             move.l              #$00000007,D0
  763.             dc.w                $ABFE
  764.         EndM
  765.     ELSE
  766.         IMPORT_CFM_FUNCTION GXUnflattenJobFromHdl
  767.     ENDIF
  768.  
  769. ;
  770. ; pascal void GXInstallApplicationOverride(gxJob aJob, short messageID, void *override)
  771. ;
  772.     IF ¨ GENERATINGCFM THEN
  773.         Macro
  774.         _GXInstallApplicationOverride
  775.             move.l              #$00000008,D0
  776.             dc.w                $ABFE
  777.         EndM
  778.     ELSE
  779.         IMPORT_CFM_FUNCTION GXInstallApplicationOverride
  780.     ENDIF
  781.  
  782. ;
  783. ; pascal Collection GXGetJobCollection(gxJob aJob)
  784. ;
  785.     IF ¨ GENERATINGCFM THEN
  786.         Macro
  787.         _GXGetJobCollection
  788.             move.l              #$0000001D,D0
  789.             dc.w                $ABFE
  790.         EndM
  791.     ELSE
  792.         IMPORT_CFM_FUNCTION GXGetJobCollection
  793.     ENDIF
  794.  
  795. ;
  796. ; pascal void *GXGetJobRefCon(gxJob aJob)
  797. ;
  798.     IF ¨ GENERATINGCFM THEN
  799.         Macro
  800.         _GXGetJobRefCon
  801.             move.l              #$0000001E,D0
  802.             dc.w                $ABFE
  803.         EndM
  804.     ELSE
  805.         IMPORT_CFM_FUNCTION GXGetJobRefCon
  806.     ENDIF
  807.  
  808. ;
  809. ; pascal void GXSetJobRefCon(gxJob aJob, void *refCon)
  810. ;
  811.     IF ¨ GENERATINGCFM THEN
  812.         Macro
  813.         _GXSetJobRefCon
  814.             move.l              #$0000001F,D0
  815.             dc.w                $ABFE
  816.         EndM
  817.     ELSE
  818.         IMPORT_CFM_FUNCTION GXSetJobRefCon
  819.     ENDIF
  820.  
  821. ;
  822. ; pascal gxJob GXCopyJob(gxJob srcJob, gxJob dstJob)
  823. ;
  824.     IF ¨ GENERATINGCFM THEN
  825.         Macro
  826.         _GXCopyJob
  827.             move.l              #$00000020,D0
  828.             dc.w                $ABFE
  829.         EndM
  830.     ELSE
  831.         IMPORT_CFM_FUNCTION GXCopyJob
  832.     ENDIF
  833.  
  834. ;
  835. ; pascal void GXSelectJobFormattingPrinter(gxJob aJob, Str31 printerName)
  836. ;
  837.     IF ¨ GENERATINGCFM THEN
  838.         Macro
  839.         _GXSelectJobFormattingPrinter
  840.             move.l              #$00000021,D0
  841.             dc.w                $ABFE
  842.         EndM
  843.     ELSE
  844.         IMPORT_CFM_FUNCTION GXSelectJobFormattingPrinter
  845.     ENDIF
  846.  
  847. ;
  848. ; pascal void GXSelectJobOutputPrinter(gxJob aJob, Str31 printerName)
  849. ;
  850.     IF ¨ GENERATINGCFM THEN
  851.         Macro
  852.         _GXSelectJobOutputPrinter
  853.             move.l              #$00000022,D0
  854.             dc.w                $ABFE
  855.         EndM
  856.     ELSE
  857.         IMPORT_CFM_FUNCTION GXSelectJobOutputPrinter
  858.     ENDIF
  859.  
  860. ;
  861. ; pascal void GXForEachJobFormatDo(gxJob aJob, GXFormatUPP formatProc, void *refCon)
  862. ;
  863.     IF ¨ GENERATINGCFM THEN
  864.         Macro
  865.         _GXForEachJobFormatDo
  866.             move.l              #$00000023,D0
  867.             dc.w                $ABFE
  868.         EndM
  869.     ELSE
  870.         IMPORT_CFM_FUNCTION GXForEachJobFormatDo
  871.     ENDIF
  872.  
  873. ;
  874. ; pascal long GXCountJobFormats(gxJob aJob)
  875. ;
  876.     IF ¨ GENERATINGCFM THEN
  877.         Macro
  878.         _GXCountJobFormats
  879.             move.l              #$00000024,D0
  880.             dc.w                $ABFE
  881.         EndM
  882.     ELSE
  883.         IMPORT_CFM_FUNCTION GXCountJobFormats
  884.     ENDIF
  885.  
  886. ;
  887. ; pascal Boolean GXUpdateJob(gxJob aJob)
  888. ;
  889.     IF ¨ GENERATINGCFM THEN
  890.         Macro
  891.         _GXUpdateJob
  892.             move.l              #$00000025,D0
  893.             dc.w                $ABFE
  894.         EndM
  895.     ELSE
  896.         IMPORT_CFM_FUNCTION GXUpdateJob
  897.     ENDIF
  898.  
  899.     ENDIF
  900.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  901. ;
  902. ; pascal void GXConvertPrintRecord(gxJob aJob, THPrint hPrint)
  903. ;
  904.     IF ¨ GENERATINGCFM THEN
  905.         Macro
  906.         _GXConvertPrintRecord
  907.             move.l              #$00000026,D0
  908.             dc.w                $ABFE
  909.         EndM
  910.     ELSE
  911.         IMPORT_CFM_FUNCTION GXConvertPrintRecord
  912.     ENDIF
  913.  
  914.     ENDIF
  915.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  916. ;
  917. ; pascal void GXIdleJob(gxJob aJob)
  918. ;
  919.     IF ¨ GENERATINGCFM THEN
  920.         Macro
  921.         _GXIdleJob
  922.             move.l              #$00000057,D0
  923.             dc.w                $ABFE
  924.         EndM
  925.     ELSE
  926.         IMPORT_CFM_FUNCTION GXIdleJob
  927.     ENDIF
  928.  
  929. ;
  930. ;    Job Format Modes Routines
  931. ;
  932. ;
  933. ; pascal void GXSetAvailableJobFormatModes(gxJob aJob, gxJobFormatModeTableHdl formatModeTable)
  934. ;
  935.     IF ¨ GENERATINGCFM THEN
  936.         Macro
  937.         _GXSetAvailableJobFormatModes
  938.             move.l              #$0000003B,D0
  939.             dc.w                $ABFE
  940.         EndM
  941.     ELSE
  942.         IMPORT_CFM_FUNCTION GXSetAvailableJobFormatModes
  943.     ENDIF
  944.  
  945. ;
  946. ; pascal gxJobFormatMode GXGetPreferredJobFormatMode(gxJob aJob, Boolean *directOnly)
  947. ;
  948.     IF ¨ GENERATINGCFM THEN
  949.         Macro
  950.         _GXGetPreferredJobFormatMode
  951.             move.l              #$0000003C,D0
  952.             dc.w                $ABFE
  953.         EndM
  954.     ELSE
  955.         IMPORT_CFM_FUNCTION GXGetPreferredJobFormatMode
  956.     ENDIF
  957.  
  958. ;
  959. ; pascal gxJobFormatMode GXGetJobFormatMode(gxJob aJob)
  960. ;
  961.     IF ¨ GENERATINGCFM THEN
  962.         Macro
  963.         _GXGetJobFormatMode
  964.             move.l              #$0000003D,D0
  965.             dc.w                $ABFE
  966.         EndM
  967.     ELSE
  968.         IMPORT_CFM_FUNCTION GXGetJobFormatMode
  969.     ENDIF
  970.  
  971. ;
  972. ; pascal void GXSetJobFormatMode(gxJob aJob, gxJobFormatMode formatMode)
  973. ;
  974.     IF ¨ GENERATINGCFM THEN
  975.         Macro
  976.         _GXSetJobFormatMode
  977.             move.l              #$0000003E,D0
  978.             dc.w                $ABFE
  979.         EndM
  980.     ELSE
  981.         IMPORT_CFM_FUNCTION GXSetJobFormatMode
  982.     ENDIF
  983.  
  984. ;
  985. ; pascal void GXJobFormatModeQuery(gxJob aJob, gxQueryType aQueryType, void *srcData, void *dstData)
  986. ;
  987.     IF ¨ GENERATINGCFM THEN
  988.         Macro
  989.         _GXJobFormatModeQuery
  990.             move.l              #$0000003F,D0
  991.             dc.w                $ABFE
  992.         EndM
  993.     ELSE
  994.         IMPORT_CFM_FUNCTION GXJobFormatModeQuery
  995.     ENDIF
  996.  
  997. ;
  998. ;    Format Routines
  999. ;
  1000. ;
  1001. ; pascal gxFormat GXNewFormat(gxJob aJob)
  1002. ;
  1003.     IF ¨ GENERATINGCFM THEN
  1004.         Macro
  1005.         _GXNewFormat
  1006.             move.l              #$00000009,D0
  1007.             dc.w                $ABFE
  1008.         EndM
  1009.     ELSE
  1010.         IMPORT_CFM_FUNCTION GXNewFormat
  1011.     ENDIF
  1012.  
  1013. ;
  1014. ; pascal void GXDisposeFormat(gxFormat aFormat)
  1015. ;
  1016.     IF ¨ GENERATINGCFM THEN
  1017.         Macro
  1018.         _GXDisposeFormat
  1019.             move.l              #$0000000A,D0
  1020.             dc.w                $ABFE
  1021.         EndM
  1022.     ELSE
  1023.         IMPORT_CFM_FUNCTION GXDisposeFormat
  1024.     ENDIF
  1025.  
  1026. ;
  1027. ; pascal gxFormat GXGetJobFormat(gxJob aJob, long whichFormat)
  1028. ;
  1029.     IF ¨ GENERATINGCFM THEN
  1030.         Macro
  1031.         _GXGetJobFormat
  1032.             move.l              #$00000013,D0
  1033.             dc.w                $ABFE
  1034.         EndM
  1035.     ELSE
  1036.         IMPORT_CFM_FUNCTION GXGetJobFormat
  1037.     ENDIF
  1038.  
  1039. ;
  1040. ; pascal gxJob GXGetFormatJob(gxFormat aFormat)
  1041. ;
  1042.     IF ¨ GENERATINGCFM THEN
  1043.         Macro
  1044.         _GXGetFormatJob
  1045.             move.l              #$00000014,D0
  1046.             dc.w                $ABFE
  1047.         EndM
  1048.     ELSE
  1049.         IMPORT_CFM_FUNCTION GXGetFormatJob
  1050.     ENDIF
  1051.  
  1052. ;
  1053. ; pascal gxPaperType GXGetFormatPaperType(gxFormat aFormat)
  1054. ;
  1055.     IF ¨ GENERATINGCFM THEN
  1056.         Macro
  1057.         _GXGetFormatPaperType
  1058.             move.l              #$00000015,D0
  1059.             dc.w                $ABFE
  1060.         EndM
  1061.     ELSE
  1062.         IMPORT_CFM_FUNCTION GXGetFormatPaperType
  1063.     ENDIF
  1064.  
  1065. ;
  1066. ; pascal void GXGetFormatDimensions(gxFormat aFormat, gxRectangle *pageSize, gxRectangle *paperSize)
  1067. ;
  1068.     IF ¨ GENERATINGCFM THEN
  1069.         Macro
  1070.         _GXGetFormatDimensions
  1071.             move.l              #$00000016,D0
  1072.             dc.w                $ABFE
  1073.         EndM
  1074.     ELSE
  1075.         IMPORT_CFM_FUNCTION GXGetFormatDimensions
  1076.     ENDIF
  1077.  
  1078. ;
  1079. ; pascal Collection GXGetFormatCollection(gxFormat aFormat)
  1080. ;
  1081.     IF ¨ GENERATINGCFM THEN
  1082.         Macro
  1083.         _GXGetFormatCollection
  1084.             move.l              #$00000033,D0
  1085.             dc.w                $ABFE
  1086.         EndM
  1087.     ELSE
  1088.         IMPORT_CFM_FUNCTION GXGetFormatCollection
  1089.     ENDIF
  1090.  
  1091. ;
  1092. ; pascal void GXChangedFormat(gxFormat aFormat)
  1093. ;
  1094.     IF ¨ GENERATINGCFM THEN
  1095.         Macro
  1096.         _GXChangedFormat
  1097.             move.l              #$00000034,D0
  1098.             dc.w                $ABFE
  1099.         EndM
  1100.     ELSE
  1101.         IMPORT_CFM_FUNCTION GXChangedFormat
  1102.     ENDIF
  1103.  
  1104. ;
  1105. ; pascal gxFormat GXCopyFormat(gxFormat srcFormat, gxFormat dstFormat)
  1106. ;
  1107.     IF ¨ GENERATINGCFM THEN
  1108.         Macro
  1109.         _GXCopyFormat
  1110.             move.l              #$00000035,D0
  1111.             dc.w                $ABFE
  1112.         EndM
  1113.     ELSE
  1114.         IMPORT_CFM_FUNCTION GXCopyFormat
  1115.     ENDIF
  1116.  
  1117. ;
  1118. ; pascal gxFormat GXCloneFormat(gxFormat aFormat)
  1119. ;
  1120.     IF ¨ GENERATINGCFM THEN
  1121.         Macro
  1122.         _GXCloneFormat
  1123.             move.l              #$00000036,D0
  1124.             dc.w                $ABFE
  1125.         EndM
  1126.     ELSE
  1127.         IMPORT_CFM_FUNCTION GXCloneFormat
  1128.     ENDIF
  1129.  
  1130. ;
  1131. ; pascal long GXCountFormatOwners(gxFormat aFormat)
  1132. ;
  1133.     IF ¨ GENERATINGCFM THEN
  1134.         Macro
  1135.         _GXCountFormatOwners
  1136.             move.l              #$00000037,D0
  1137.             dc.w                $ABFE
  1138.         EndM
  1139.     ELSE
  1140.         IMPORT_CFM_FUNCTION GXCountFormatOwners
  1141.     ENDIF
  1142.  
  1143. ;
  1144. ; pascal void GXGetFormatMapping(gxFormat aFormat, gxMapping *fmtMapping)
  1145. ;
  1146.     IF ¨ GENERATINGCFM THEN
  1147.         Macro
  1148.         _GXGetFormatMapping
  1149.             move.l              #$00000038,D0
  1150.             dc.w                $ABFE
  1151.         EndM
  1152.     ELSE
  1153.         IMPORT_CFM_FUNCTION GXGetFormatMapping
  1154.     ENDIF
  1155.  
  1156. ;
  1157. ; pascal gxShape GXGetFormatForm(gxFormat aFormat, gxShape *mask)
  1158. ;
  1159.     IF ¨ GENERATINGCFM THEN
  1160.         Macro
  1161.         _GXGetFormatForm
  1162.             move.l              #$00000039,D0
  1163.             dc.w                $ABFE
  1164.         EndM
  1165.     ELSE
  1166.         IMPORT_CFM_FUNCTION GXGetFormatForm
  1167.     ENDIF
  1168.  
  1169. ;
  1170. ; pascal void GXSetFormatForm(gxFormat aFormat, gxShape form, gxShape mask)
  1171. ;
  1172.     IF ¨ GENERATINGCFM THEN
  1173.         Macro
  1174.         _GXSetFormatForm
  1175.             move.l              #$0000003A,D0
  1176.             dc.w                $ABFE
  1177.         EndM
  1178.     ELSE
  1179.         IMPORT_CFM_FUNCTION GXSetFormatForm
  1180.     ENDIF
  1181.  
  1182. ;
  1183. ;    PaperType Routines
  1184. ;
  1185. ;
  1186. ; pascal gxPaperType GXNewPaperType(gxJob aJob, Str31 name, gxRectangle *pageSize, gxRectangle *paperSize)
  1187. ;
  1188.     IF ¨ GENERATINGCFM THEN
  1189.         Macro
  1190.         _GXNewPaperType
  1191.             move.l              #$0000000B,D0
  1192.             dc.w                $ABFE
  1193.         EndM
  1194.     ELSE
  1195.         IMPORT_CFM_FUNCTION GXNewPaperType
  1196.     ENDIF
  1197.  
  1198. ;
  1199. ; pascal void GXDisposePaperType(gxPaperType aPaperType)
  1200. ;
  1201.     IF ¨ GENERATINGCFM THEN
  1202.         Macro
  1203.         _GXDisposePaperType
  1204.             move.l              #$0000000C,D0
  1205.             dc.w                $ABFE
  1206.         EndM
  1207.     ELSE
  1208.         IMPORT_CFM_FUNCTION GXDisposePaperType
  1209.     ENDIF
  1210.  
  1211. ;
  1212. ; pascal gxPaperType GXGetNewPaperType(gxJob aJob, short resID)
  1213. ;
  1214.     IF ¨ GENERATINGCFM THEN
  1215.         Macro
  1216.         _GXGetNewPaperType
  1217.             move.l              #$0000000D,D0
  1218.             dc.w                $ABFE
  1219.         EndM
  1220.     ELSE
  1221.         IMPORT_CFM_FUNCTION GXGetNewPaperType
  1222.     ENDIF
  1223.  
  1224. ;
  1225. ; pascal long GXCountJobPaperTypes(gxJob aJob, Boolean forFormatDevice)
  1226. ;
  1227.     IF ¨ GENERATINGCFM THEN
  1228.         Macro
  1229.         _GXCountJobPaperTypes
  1230.             move.l              #$00000042,D0
  1231.             dc.w                $ABFE
  1232.         EndM
  1233.     ELSE
  1234.         IMPORT_CFM_FUNCTION GXCountJobPaperTypes
  1235.     ENDIF
  1236.  
  1237. ;
  1238. ; pascal gxPaperType GXGetJobPaperType(gxJob aJob, long whichPaperType, Boolean forFormatDevice, gxPaperType aPaperType)
  1239. ;
  1240.     IF ¨ GENERATINGCFM THEN
  1241.         Macro
  1242.         _GXGetJobPaperType
  1243.             move.l              #$00000043,D0
  1244.             dc.w                $ABFE
  1245.         EndM
  1246.     ELSE
  1247.         IMPORT_CFM_FUNCTION GXGetJobPaperType
  1248.     ENDIF
  1249.  
  1250. ;
  1251. ; pascal void GXForEachJobPaperTypeDo(gxJob aJob, GXPaperTypeUPP aProc, void *refCon, Boolean forFormattingPrinter)
  1252. ;
  1253.     IF ¨ GENERATINGCFM THEN
  1254.         Macro
  1255.         _GXForEachJobPaperTypeDo
  1256.             move.l              #$00000044,D0
  1257.             dc.w                $ABFE
  1258.         EndM
  1259.     ELSE
  1260.         IMPORT_CFM_FUNCTION GXForEachJobPaperTypeDo
  1261.     ENDIF
  1262.  
  1263. ;
  1264. ; pascal gxPaperType GXCopyPaperType(gxPaperType srcPaperType, gxPaperType dstPaperType)
  1265. ;
  1266.     IF ¨ GENERATINGCFM THEN
  1267.         Macro
  1268.         _GXCopyPaperType
  1269.             move.l              #$00000045,D0
  1270.             dc.w                $ABFE
  1271.         EndM
  1272.     ELSE
  1273.         IMPORT_CFM_FUNCTION GXCopyPaperType
  1274.     ENDIF
  1275.  
  1276. ;
  1277. ; pascal void GXGetPaperTypeName(gxPaperType aPaperType, Str31 papertypeName)
  1278. ;
  1279.     IF ¨ GENERATINGCFM THEN
  1280.         Macro
  1281.         _GXGetPaperTypeName
  1282.             move.l              #$00000046,D0
  1283.             dc.w                $ABFE
  1284.         EndM
  1285.     ELSE
  1286.         IMPORT_CFM_FUNCTION GXGetPaperTypeName
  1287.     ENDIF
  1288.  
  1289. ;
  1290. ; pascal void GXGetPaperTypeDimensions(gxPaperType aPaperType, gxRectangle *pageSize, gxRectangle *paperSize)
  1291. ;
  1292.     IF ¨ GENERATINGCFM THEN
  1293.         Macro
  1294.         _GXGetPaperTypeDimensions
  1295.             move.l              #$00000047,D0
  1296.             dc.w                $ABFE
  1297.         EndM
  1298.     ELSE
  1299.         IMPORT_CFM_FUNCTION GXGetPaperTypeDimensions
  1300.     ENDIF
  1301.  
  1302. ;
  1303. ; pascal gxJob GXGetPaperTypeJob(gxPaperType aPaperType)
  1304. ;
  1305.     IF ¨ GENERATINGCFM THEN
  1306.         Macro
  1307.         _GXGetPaperTypeJob
  1308.             move.l              #$00000048,D0
  1309.             dc.w                $ABFE
  1310.         EndM
  1311.     ELSE
  1312.         IMPORT_CFM_FUNCTION GXGetPaperTypeJob
  1313.     ENDIF
  1314.  
  1315. ;
  1316. ; pascal Collection GXGetPaperTypeCollection(gxPaperType aPaperType)
  1317. ;
  1318.     IF ¨ GENERATINGCFM THEN
  1319.         Macro
  1320.         _GXGetPaperTypeCollection
  1321.             move.l              #$00000049,D0
  1322.             dc.w                $ABFE
  1323.         EndM
  1324.     ELSE
  1325.         IMPORT_CFM_FUNCTION GXGetPaperTypeCollection
  1326.     ENDIF
  1327.  
  1328. ;
  1329. ;    Printer Routines
  1330. ;
  1331. ;
  1332. ; pascal gxPrinter GXGetJobFormattingPrinter(gxJob aJob)
  1333. ;
  1334.     IF ¨ GENERATINGCFM THEN
  1335.         Macro
  1336.         _GXGetJobFormattingPrinter
  1337.             move.l              #$00000027,D0
  1338.             dc.w                $ABFE
  1339.         EndM
  1340.     ELSE
  1341.         IMPORT_CFM_FUNCTION GXGetJobFormattingPrinter
  1342.     ENDIF
  1343.  
  1344. ;
  1345. ; pascal gxPrinter GXGetJobOutputPrinter(gxJob aJob)
  1346. ;
  1347.     IF ¨ GENERATINGCFM THEN
  1348.         Macro
  1349.         _GXGetJobOutputPrinter
  1350.             move.l              #$00000028,D0
  1351.             dc.w                $ABFE
  1352.         EndM
  1353.     ELSE
  1354.         IMPORT_CFM_FUNCTION GXGetJobOutputPrinter
  1355.     ENDIF
  1356.  
  1357. ;
  1358. ; pascal gxPrinter GXGetJobPrinter(gxJob aJob)
  1359. ;
  1360.     IF ¨ GENERATINGCFM THEN
  1361.         Macro
  1362.         _GXGetJobPrinter
  1363.             move.l              #$00000029,D0
  1364.             dc.w                $ABFE
  1365.         EndM
  1366.     ELSE
  1367.         IMPORT_CFM_FUNCTION GXGetJobPrinter
  1368.     ENDIF
  1369.  
  1370. ;
  1371. ; pascal gxJob GXGetPrinterJob(gxPrinter aPrinter)
  1372. ;
  1373.     IF ¨ GENERATINGCFM THEN
  1374.         Macro
  1375.         _GXGetPrinterJob
  1376.             move.l              #$0000002A,D0
  1377.             dc.w                $ABFE
  1378.         EndM
  1379.     ELSE
  1380.         IMPORT_CFM_FUNCTION GXGetPrinterJob
  1381.     ENDIF
  1382.  
  1383. ;
  1384. ; pascal void GXForEachPrinterViewDeviceDo(gxPrinter aPrinter, GXViewDeviceUPP aProc, void *refCon)
  1385. ;
  1386.     IF ¨ GENERATINGCFM THEN
  1387.         Macro
  1388.         _GXForEachPrinterViewDeviceDo
  1389.             move.l              #$0000002B,D0
  1390.             dc.w                $ABFE
  1391.         EndM
  1392.     ELSE
  1393.         IMPORT_CFM_FUNCTION GXForEachPrinterViewDeviceDo
  1394.     ENDIF
  1395.  
  1396. ;
  1397. ; pascal long GXCountPrinterViewDevices(gxPrinter aPrinter)
  1398. ;
  1399.     IF ¨ GENERATINGCFM THEN
  1400.         Macro
  1401.         _GXCountPrinterViewDevices
  1402.             move.l              #$0000002C,D0
  1403.             dc.w                $ABFE
  1404.         EndM
  1405.     ELSE
  1406.         IMPORT_CFM_FUNCTION GXCountPrinterViewDevices
  1407.     ENDIF
  1408.  
  1409. ;
  1410. ; pascal gxViewDevice GXGetPrinterViewDevice(gxPrinter aPrinter, long whichViewDevice)
  1411. ;
  1412.     IF ¨ GENERATINGCFM THEN
  1413.         Macro
  1414.         _GXGetPrinterViewDevice
  1415.             move.l              #$0000002D,D0
  1416.             dc.w                $ABFE
  1417.         EndM
  1418.     ELSE
  1419.         IMPORT_CFM_FUNCTION GXGetPrinterViewDevice
  1420.     ENDIF
  1421.  
  1422. ;
  1423. ; pascal void GXSelectPrinterViewDevice(gxPrinter aPrinter, long whichViewDevice)
  1424. ;
  1425.     IF ¨ GENERATINGCFM THEN
  1426.         Macro
  1427.         _GXSelectPrinterViewDevice
  1428.             move.l              #$0000002E,D0
  1429.             dc.w                $ABFE
  1430.         EndM
  1431.     ELSE
  1432.         IMPORT_CFM_FUNCTION GXSelectPrinterViewDevice
  1433.     ENDIF
  1434.  
  1435. ;
  1436. ; pascal void GXGetPrinterName(gxPrinter aPrinter, Str31 printerName)
  1437. ;
  1438.     IF ¨ GENERATINGCFM THEN
  1439.         Macro
  1440.         _GXGetPrinterName
  1441.             move.l              #$0000002F,D0
  1442.             dc.w                $ABFE
  1443.         EndM
  1444.     ELSE
  1445.         IMPORT_CFM_FUNCTION GXGetPrinterName
  1446.     ENDIF
  1447.  
  1448. ;
  1449. ; pascal OSType GXGetPrinterType(gxPrinter aPrinter)
  1450. ;
  1451.     IF ¨ GENERATINGCFM THEN
  1452.         Macro
  1453.         _GXGetPrinterType
  1454.             move.l              #$00000030,D0
  1455.             dc.w                $ABFE
  1456.         EndM
  1457.     ELSE
  1458.         IMPORT_CFM_FUNCTION GXGetPrinterType
  1459.     ENDIF
  1460.  
  1461. ;
  1462. ; pascal void GXGetPrinterDriverName(gxPrinter aPrinter, Str31 driverName)
  1463. ;
  1464.     IF ¨ GENERATINGCFM THEN
  1465.         Macro
  1466.         _GXGetPrinterDriverName
  1467.             move.l              #$00000031,D0
  1468.             dc.w                $ABFE
  1469.         EndM
  1470.     ELSE
  1471.         IMPORT_CFM_FUNCTION GXGetPrinterDriverName
  1472.     ENDIF
  1473.  
  1474. ;
  1475. ; pascal OSType GXGetPrinterDriverType(gxPrinter aPrinter)
  1476. ;
  1477.     IF ¨ GENERATINGCFM THEN
  1478.         Macro
  1479.         _GXGetPrinterDriverType
  1480.             move.l              #$00000032,D0
  1481.             dc.w                $ABFE
  1482.         EndM
  1483.     ELSE
  1484.         IMPORT_CFM_FUNCTION GXGetPrinterDriverType
  1485.     ENDIF
  1486.  
  1487. ;
  1488. ;    Dialog Routines
  1489. ;
  1490. ;
  1491. ; pascal gxDialogResult GXJobDefaultFormatDialog(gxJob aJob, gxEditMenuRecord *anEditMenuRec)
  1492. ;
  1493.     IF ¨ GENERATINGCFM THEN
  1494.         Macro
  1495.         _GXJobDefaultFormatDialog
  1496.             move.l              #$00000010,D0
  1497.             dc.w                $ABFE
  1498.         EndM
  1499.     ELSE
  1500.         IMPORT_CFM_FUNCTION GXJobDefaultFormatDialog
  1501.     ENDIF
  1502.  
  1503. ;
  1504. ; pascal gxDialogResult GXJobPrintDialog(gxJob aJob, gxEditMenuRecord *anEditMenuRec)
  1505. ;
  1506.     IF ¨ GENERATINGCFM THEN
  1507.         Macro
  1508.         _GXJobPrintDialog
  1509.             move.l              #$00000011,D0
  1510.             dc.w                $ABFE
  1511.         EndM
  1512.     ELSE
  1513.         IMPORT_CFM_FUNCTION GXJobPrintDialog
  1514.     ENDIF
  1515.  
  1516. ;
  1517. ; pascal gxDialogResult GXFormatDialog(gxFormat aFormat, gxEditMenuRecord *anEditMenuRec, StringPtr title)
  1518. ;
  1519.     IF ¨ GENERATINGCFM THEN
  1520.         Macro
  1521.         _GXFormatDialog
  1522.             move.l              #$00000012,D0
  1523.             dc.w                $ABFE
  1524.         EndM
  1525.     ELSE
  1526.         IMPORT_CFM_FUNCTION GXFormatDialog
  1527.     ENDIF
  1528.  
  1529. ;
  1530. ; pascal void GXEnableJobScalingPanel(gxJob aJob, Boolean enabled)
  1531. ;
  1532.     IF ¨ GENERATINGCFM THEN
  1533.         Macro
  1534.         _GXEnableJobScalingPanel
  1535.             move.l              #$00000040,D0
  1536.             dc.w                $ABFE
  1537.         EndM
  1538.     ELSE
  1539.         IMPORT_CFM_FUNCTION GXEnableJobScalingPanel
  1540.     ENDIF
  1541.  
  1542. ;
  1543. ; pascal void GXGetJobPanelDimensions(gxJob aJob, Rect *panelArea)
  1544. ;
  1545.     IF ¨ GENERATINGCFM THEN
  1546.         Macro
  1547.         _GXGetJobPanelDimensions
  1548.             move.l              #$00000041,D0
  1549.             dc.w                $ABFE
  1550.         EndM
  1551.     ELSE
  1552.         IMPORT_CFM_FUNCTION GXGetJobPanelDimensions
  1553.     ENDIF
  1554.  
  1555. ;
  1556. ;    Spooling Routines
  1557. ;
  1558. ;
  1559. ; pascal void GXGetJobPageRange(gxJob theJob, long *firstPage, long *lastPage)
  1560. ;
  1561.     IF ¨ GENERATINGCFM THEN
  1562.         Macro
  1563.         _GXGetJobPageRange
  1564.             move.l              #$00000017,D0
  1565.             dc.w                $ABFE
  1566.         EndM
  1567.     ELSE
  1568.         IMPORT_CFM_FUNCTION GXGetJobPageRange
  1569.     ENDIF
  1570.  
  1571. ;
  1572. ; pascal void GXStartJob(gxJob theJob, StringPtr docName, long pageCount)
  1573. ;
  1574.     IF ¨ GENERATINGCFM THEN
  1575.         Macro
  1576.         _GXStartJob
  1577.             move.l              #$00000018,D0
  1578.             dc.w                $ABFE
  1579.         EndM
  1580.     ELSE
  1581.         IMPORT_CFM_FUNCTION GXStartJob
  1582.     ENDIF
  1583.  
  1584. ;
  1585. ; pascal void GXPrintPage(gxJob theJob, long pageNumber, gxFormat theFormat, gxShape thePage)
  1586. ;
  1587.     IF ¨ GENERATINGCFM THEN
  1588.         Macro
  1589.         _GXPrintPage
  1590.             move.l              #$00000019,D0
  1591.             dc.w                $ABFE
  1592.         EndM
  1593.     ELSE
  1594.         IMPORT_CFM_FUNCTION GXPrintPage
  1595.     ENDIF
  1596.  
  1597. ;
  1598. ; pascal Boolean GXStartPage(gxJob theJob, long pageNumber, gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  1599. ;
  1600.     IF ¨ GENERATINGCFM THEN
  1601.         Macro
  1602.         _GXStartPage
  1603.             move.l              #$0000001A,D0
  1604.             dc.w                $ABFE
  1605.         EndM
  1606.     ELSE
  1607.         IMPORT_CFM_FUNCTION GXStartPage
  1608.     ENDIF
  1609.  
  1610. ;
  1611. ; pascal void GXFinishPage(gxJob theJob)
  1612. ;
  1613.     IF ¨ GENERATINGCFM THEN
  1614.         Macro
  1615.         _GXFinishPage
  1616.             move.l              #$0000001B,D0
  1617.             dc.w                $ABFE
  1618.         EndM
  1619.     ELSE
  1620.         IMPORT_CFM_FUNCTION GXFinishPage
  1621.     ENDIF
  1622.  
  1623. ;
  1624. ; pascal void GXFinishJob(gxJob theJob)
  1625. ;
  1626.     IF ¨ GENERATINGCFM THEN
  1627.         Macro
  1628.         _GXFinishJob
  1629.             move.l              #$0000001C,D0
  1630.             dc.w                $ABFE
  1631.         EndM
  1632.     ELSE
  1633.         IMPORT_CFM_FUNCTION GXFinishJob
  1634.     ENDIF
  1635.  
  1636. ;
  1637. ;    PrintFile Routines
  1638. ;
  1639. ;
  1640. ; pascal gxPrintFile GXOpenPrintFile(gxJob theJob, FSSpecPtr anFSSpec, char permission)
  1641. ;
  1642.     IF ¨ GENERATINGCFM THEN
  1643.         Macro
  1644.         _GXOpenPrintFile
  1645.             move.l              #$0000004A,D0
  1646.             dc.w                $ABFE
  1647.         EndM
  1648.     ELSE
  1649.         IMPORT_CFM_FUNCTION GXOpenPrintFile
  1650.     ENDIF
  1651.  
  1652. ;
  1653. ; pascal void GXClosePrintFile(gxPrintFile aPrintFile)
  1654. ;
  1655.     IF ¨ GENERATINGCFM THEN
  1656.         Macro
  1657.         _GXClosePrintFile
  1658.             move.l              #$0000004B,D0
  1659.             dc.w                $ABFE
  1660.         EndM
  1661.     ELSE
  1662.         IMPORT_CFM_FUNCTION GXClosePrintFile
  1663.     ENDIF
  1664.  
  1665. ;
  1666. ; pascal gxJob GXGetPrintFileJob(gxPrintFile aPrintFile)
  1667. ;
  1668.     IF ¨ GENERATINGCFM THEN
  1669.         Macro
  1670.         _GXGetPrintFileJob
  1671.             move.l              #$0000004C,D0
  1672.             dc.w                $ABFE
  1673.         EndM
  1674.     ELSE
  1675.         IMPORT_CFM_FUNCTION GXGetPrintFileJob
  1676.     ENDIF
  1677.  
  1678. ;
  1679. ; pascal long GXCountPrintFilePages(gxPrintFile aPrintFile)
  1680. ;
  1681.     IF ¨ GENERATINGCFM THEN
  1682.         Macro
  1683.         _GXCountPrintFilePages
  1684.             move.l              #$0000004D,D0
  1685.             dc.w                $ABFE
  1686.         EndM
  1687.     ELSE
  1688.         IMPORT_CFM_FUNCTION GXCountPrintFilePages
  1689.     ENDIF
  1690.  
  1691. ;
  1692. ; pascal void GXReadPrintFilePage(gxPrintFile aPrintFile, long pageNumber, long numViewPorts, gxViewPort *viewPortList, gxFormat *pgFormat, gxShape *pgShape)
  1693. ;
  1694.     IF ¨ GENERATINGCFM THEN
  1695.         Macro
  1696.         _GXReadPrintFilePage
  1697.             move.l              #$0000004E,D0
  1698.             dc.w                $ABFE
  1699.         EndM
  1700.     ELSE
  1701.         IMPORT_CFM_FUNCTION GXReadPrintFilePage
  1702.     ENDIF
  1703.  
  1704. ;
  1705. ; pascal void GXReplacePrintFilePage(gxPrintFile aPrintFile, long pageNumber, gxFormat aFormat, gxShape aShape)
  1706. ;
  1707.     IF ¨ GENERATINGCFM THEN
  1708.         Macro
  1709.         _GXReplacePrintFilePage
  1710.             move.l              #$0000004F,D0
  1711.             dc.w                $ABFE
  1712.         EndM
  1713.     ELSE
  1714.         IMPORT_CFM_FUNCTION GXReplacePrintFilePage
  1715.     ENDIF
  1716.  
  1717. ;
  1718. ; pascal void GXInsertPrintFilePage(gxPrintFile aPrintFile, long atPageNumber, gxFormat pgFormat, gxShape pgShape)
  1719. ;
  1720.     IF ¨ GENERATINGCFM THEN
  1721.         Macro
  1722.         _GXInsertPrintFilePage
  1723.             move.l              #$00000050,D0
  1724.             dc.w                $ABFE
  1725.         EndM
  1726.     ELSE
  1727.         IMPORT_CFM_FUNCTION GXInsertPrintFilePage
  1728.     ENDIF
  1729.  
  1730. ;
  1731. ; pascal void GXDeletePrintFilePageRange(gxPrintFile aPrintFile, long fromPageNumber, long toPageNumber)
  1732. ;
  1733.     IF ¨ GENERATINGCFM THEN
  1734.         Macro
  1735.         _GXDeletePrintFilePageRange
  1736.             move.l              #$00000051,D0
  1737.             dc.w                $ABFE
  1738.         EndM
  1739.     ELSE
  1740.         IMPORT_CFM_FUNCTION GXDeletePrintFilePageRange
  1741.     ENDIF
  1742.  
  1743. ;
  1744. ; pascal void GXSavePrintFile(gxPrintFile aPrintFile, FSSpec *anFSSpec)
  1745. ;
  1746.     IF ¨ GENERATINGCFM THEN
  1747.         Macro
  1748.         _GXSavePrintFile
  1749.             move.l              #$00000052,D0
  1750.             dc.w                $ABFE
  1751.         EndM
  1752.     ELSE
  1753.         IMPORT_CFM_FUNCTION GXSavePrintFile
  1754.     ENDIF
  1755.  
  1756. ;
  1757. ;    ColorSync Routines
  1758. ;
  1759. ;
  1760. ; pascal long GXFindPrinterProfile(gxPrinter aPrinter, void *searchData, long index, gxColorProfile *returnedProfile)
  1761. ;
  1762.     IF ¨ GENERATINGCFM THEN
  1763.         Macro
  1764.         _GXFindPrinterProfile
  1765.             move.l              #$00000053,D0
  1766.             dc.w                $ABFE
  1767.         EndM
  1768.     ELSE
  1769.         IMPORT_CFM_FUNCTION GXFindPrinterProfile
  1770.     ENDIF
  1771.  
  1772. ;
  1773. ; pascal long GXFindFormatProfile(gxFormat aFormat, void *searchData, long index, gxColorProfile *returnedProfile)
  1774. ;
  1775.     IF ¨ GENERATINGCFM THEN
  1776.         Macro
  1777.         _GXFindFormatProfile
  1778.             move.l              #$00000054,D0
  1779.             dc.w                $ABFE
  1780.         EndM
  1781.     ELSE
  1782.         IMPORT_CFM_FUNCTION GXFindFormatProfile
  1783.     ENDIF
  1784.  
  1785. ;
  1786. ; pascal void GXSetPrinterProfile(gxPrinter aPrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  1787. ;
  1788.     IF ¨ GENERATINGCFM THEN
  1789.         Macro
  1790.         _GXSetPrinterProfile
  1791.             move.l              #$00000055,D0
  1792.             dc.w                $ABFE
  1793.         EndM
  1794.     ELSE
  1795.         IMPORT_CFM_FUNCTION GXSetPrinterProfile
  1796.     ENDIF
  1797.  
  1798. ;
  1799. ; pascal void GXSetFormatProfile(gxFormat aFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  1800. ;
  1801.     IF ¨ GENERATINGCFM THEN
  1802.         Macro
  1803.         _GXSetFormatProfile
  1804.             move.l              #$00000056,D0
  1805.             dc.w                $ABFE
  1806.         EndM
  1807.     ELSE
  1808.         IMPORT_CFM_FUNCTION GXSetFormatProfile
  1809.     ENDIF
  1810.  
  1811. ;
  1812. ;***********************************************************************
  1813. ;                        Start of old "GXPrintingResEquates.h/a/p" interface file.
  1814. ;                ************************************************************************
  1815. ;
  1816. ;
  1817. ;    ------------------------------------
  1818. ;                Basic client types
  1819. ;    ------------------------------------ 
  1820. ;
  1821.  
  1822. gxPrintingManagerType            EQU        'pmgr'
  1823. gxImagingSystemType                EQU        'gxis'
  1824. gxPrinterDriverType                EQU        'pdvr'
  1825. gxPrintingExtensionType            EQU        'pext'
  1826. gxUnknownPrinterType            EQU        'none'
  1827. gxAnyPrinterType                EQU        'univ'
  1828. gxQuickdrawPrinterType            EQU        'qdrw'
  1829. gxPortableDocPrinterType        EQU        'gxpd'
  1830. gxRasterPrinterType                EQU        'rast'
  1831. gxPostscriptPrinterType            EQU        'post'
  1832. gxVectorPrinterType                EQU        'vect'
  1833. ;  All pre-defined printing collection items have this ID 
  1834.  
  1835. gxPrintingTagID                    EQU        -28672
  1836. ;
  1837. ;    ----------------------------------------------------------------------
  1838. ;
  1839. ;        Resource types and IDs used by both extension and driver writers
  1840. ;
  1841. ;    ---------------------------------------------------------------------- 
  1842. ;
  1843. ;  Resources in a printer driver or extension must be based off of these IDs 
  1844.  
  1845. gxPrintingDriverBaseID            EQU        -27648
  1846. gxPrintingExtensionBaseID        EQU        -27136
  1847. ;
  1848. ;    Override resources tell the system what messages a driver or extension
  1849. ;        is overriding.  A driver may have a series of these resources. 
  1850. ;
  1851. ;  Override resource type for 68k resource-based code:
  1852.  
  1853. gxOverrideType                    EQU        'over'
  1854. ;  Override resource type for PowerPC datafork-based code:
  1855.  
  1856. gxNativeOverrideType            EQU        'povr'
  1857. ;
  1858. ;    --------------------------------------------------------------
  1859. ;
  1860. ;        Message ID definitions by both extension and driver writers
  1861. ;
  1862. ;    --------------------------------------------------------------- 
  1863. ;
  1864. ;  Identifiers for universal message overrides. 
  1865.  
  1866. gxInitializeMsg                    EQU        0
  1867. gxShutDownMsg                    EQU        1
  1868. gxJobIdleMsg                    EQU        2
  1869. gxJobStatusMsg                    EQU        3
  1870. gxPrintingEventMsg                EQU        4
  1871. gxJobDefaultFormatDialogMsg        EQU        5
  1872. gxFormatDialogMsg                EQU        6
  1873. gxJobPrintDialogMsg                EQU        7
  1874. gxFilterPanelEventMsg            EQU        8
  1875. gxHandlePanelEventMsg            EQU        9
  1876. gxParsePageRangeMsg                EQU        10
  1877. gxDefaultJobMsg                    EQU        11
  1878. gxDefaultFormatMsg                EQU        12
  1879. gxDefaultPaperTypeMsg            EQU        13
  1880. gxDefaultPrinterMsg                EQU        14
  1881. gxCreateSpoolFileMsg            EQU        15
  1882. gxSpoolPageMsg                    EQU        16
  1883. gxSpoolDataMsg                    EQU        17
  1884. gxSpoolResourceMsg                EQU        18
  1885. gxCompleteSpoolFileMsg            EQU        19
  1886. gxCountPagesMsg                    EQU        20
  1887. gxDespoolPageMsg                EQU        21
  1888. gxDespoolDataMsg                EQU        22
  1889. gxDespoolResourceMsg            EQU        23
  1890. gxCloseSpoolFileMsg                EQU        24
  1891. gxStartJobMsg                    EQU        25
  1892. gxFinishJobMsg                    EQU        26
  1893. gxStartPageMsg                    EQU        27
  1894. gxFinishPageMsg                    EQU        28
  1895. gxPrintPageMsg                    EQU        29
  1896. gxSetupImageDataMsg                EQU        30
  1897. gxImageJobMsg                    EQU        31
  1898. gxImageDocumentMsg                EQU        32
  1899. gxImagePageMsg                    EQU        33
  1900. gxRenderPageMsg                    EQU        34
  1901. gxCreateImageFileMsg            EQU        35
  1902. gxOpenConnectionMsg                EQU        36
  1903. gxCloseConnectionMsg            EQU        37
  1904. gxStartSendPageMsg                EQU        38
  1905. gxFinishSendPageMsg                EQU        39
  1906. gxWriteDataMsg                    EQU        40
  1907. gxBufferDataMsg                    EQU        41
  1908. gxDumpBufferMsg                    EQU        42
  1909. gxFreeBufferMsg                    EQU        43
  1910. gxCheckStatusMsg                EQU        44
  1911. gxGetDeviceStatusMsg            EQU        45
  1912. gxFetchTaggedDataMsg            EQU        46
  1913. gxGetDTPMenuListMsg                EQU        47
  1914. gxDTPMenuSelectMsg                EQU        48
  1915. gxHandleAlertFilterMsg            EQU        49
  1916. gxJobFormatModeQueryMsg            EQU        50
  1917. gxWriteStatusToDTPWindowMsg        EQU        51
  1918. gxInitializeStatusAlertMsg        EQU        52
  1919. gxHandleAlertStatusMsg            EQU        53
  1920. gxHandleAlertEventMsg            EQU        54
  1921. gxCleanupStartJobMsg            EQU        55
  1922. gxCleanupStartPageMsg            EQU        56
  1923. gxCleanupOpenConnectionMsg        EQU        57
  1924. gxCleanupStartSendPageMsg        EQU        58
  1925. gxDefaultDesktopPrinterMsg        EQU        59
  1926. gxCaptureOutputDeviceMsg        EQU        60
  1927. gxOpenConnectionRetryMsg        EQU        61
  1928. gxExamineSpoolFileMsg            EQU        62
  1929. gxFinishSendPlaneMsg            EQU        63
  1930. gxDoesPaperFitMsg                EQU        64
  1931. gxChooserMessageMsg                EQU        65
  1932. gxFindPrinterProfileMsg            EQU        66
  1933. gxFindFormatProfileMsg            EQU        67
  1934. gxSetPrinterProfileMsg            EQU        68
  1935. gxSetFormatProfileMsg            EQU        69
  1936. gxHandleAltDestinationMsg        EQU        70
  1937. gxSetupPageImageDataMsg            EQU        71
  1938. ;  Identifiers for Quickdraw message overrides. 
  1939.  
  1940. gxPrOpenDocMsg                    EQU        0
  1941. gxPrCloseDocMsg                    EQU        1
  1942. gxPrOpenPageMsg                    EQU        2
  1943. gxPrClosePageMsg                EQU        3
  1944. gxPrintDefaultMsg                EQU        4
  1945. gxPrStlDialogMsg                EQU        5
  1946. gxPrJobDialogMsg                EQU        6
  1947. gxPrStlInitMsg                    EQU        7
  1948. gxPrJobInitMsg                    EQU        8
  1949. gxPrDlgMainMsg                    EQU        9
  1950. gxPrValidateMsg                    EQU        10
  1951. gxPrJobMergeMsg                    EQU        11
  1952. gxPrGeneralMsg                    EQU        12
  1953. gxConvertPrintRecordToMsg        EQU        13
  1954. gxConvertPrintRecordFromMsg        EQU        14
  1955. gxPrintRecordToJobMsg            EQU        15
  1956. ;  Identifiers for raster imaging message overrides. 
  1957.  
  1958. gxRasterDataInMsg                EQU        0
  1959. gxRasterLineFeedMsg                EQU        1
  1960. gxRasterPackageBitmapMsg        EQU        2
  1961. ;  Identifiers for PostScript imaging message overrides. 
  1962.  
  1963. gxPostscriptQueryPrinterMsg        EQU        0
  1964. gxPostscriptInitializePrinterMsg EQU    1
  1965. gxPostscriptResetPrinterMsg        EQU        2
  1966. gxPostscriptExitServerMsg        EQU        3
  1967. gxPostscriptGetStatusTextMsg    EQU        4
  1968. gxPostscriptGetPrinterTextMsg    EQU        5
  1969. gxPostscriptScanStatusTextMsg    EQU        6
  1970. gxPostscriptScanPrinterTextMsg    EQU        7
  1971. gxPostscriptGetDocumentProcSetListMsg EQU 8
  1972. gxPostscriptDownloadProcSetListMsg EQU    9
  1973. gxPostscriptGetPrinterGlyphsInformationMsg EQU 10
  1974. gxPostscriptStreamFontMsg        EQU        11
  1975. gxPostscriptDoDocumentHeaderMsg    EQU        12
  1976. gxPostscriptDoDocumentSetUpMsg    EQU        13
  1977. gxPostscriptDoDocumentTrailerMsg EQU    14
  1978. gxPostscriptDoPageSetUpMsg        EQU        15
  1979. gxPostscriptSelectPaperTypeMsg    EQU        16
  1980. gxPostscriptDoPageTrailerMsg    EQU        17
  1981. gxPostscriptEjectPageMsg        EQU        18
  1982. gxPostscriptProcessShapeMsg        EQU        19
  1983. gxPostScriptEjectPendingPageMsg    EQU        20
  1984. ;  Identifiers for Vector imaging message overrides. 
  1985.  
  1986. gxVectorPackageDataMsg            EQU        0
  1987. gxVectorLoadPensMsg                EQU        1
  1988. gxVectorVectorizeShapeMsg        EQU        2
  1989. ;  Dialog related resource types 
  1990.  
  1991. gxPrintingAlertType                EQU        'plrt'
  1992. gxStatusType                    EQU        'stat'
  1993. gxExtendedDITLType                EQU        'xdtl'
  1994. gxPrintPanelType                EQU        'ppnl'
  1995. gxCollectionType                EQU        'cltn'
  1996. ;  Communication resource types 
  1997. ;
  1998. ;    The looker resource is used by the Chooser PACK to determine what kind
  1999. ;    of communications this driver supports. (In order to generate/handle the 
  2000. ;    pop-up menu for "Connect via:".
  2001. ;    
  2002. ;    The looker resource is also used by PrinterShare to determine the AppleTalk NBP Type
  2003. ;    for servers created for this driver.
  2004. ;
  2005.  
  2006. gxLookerType                    EQU        'look'
  2007. gxLookerID                        EQU        -4096
  2008. ;  The communications method and private data used to connect to the printer 
  2009.  
  2010. gxDeviceCommunicationsType        EQU        'comm'
  2011. ;
  2012. ;    -------------------------------------------------
  2013. ;
  2014. ;    Resource types and IDs used by extension writers
  2015. ;
  2016. ;    ------------------------------------------------- 
  2017. ;
  2018.  
  2019. gxExtensionUniversalOverrideID    EQU        -27136
  2020.  
  2021. gxExtensionImagingOverrideSelectorID EQU -27136
  2022.  
  2023. gxExtensionScopeType            EQU        'scop'
  2024. gxDriverScopeID                    EQU        -27136
  2025. gxPrinterScopeID                EQU        -27135
  2026. gxPrinterExceptionScopeID        EQU        -27134
  2027.  
  2028. gxExtensionLoadType                EQU        'load'
  2029. gxExtensionLoadID                EQU        -27136
  2030.  
  2031. gxExtensionLoadFirst            EQU        $00000100
  2032. gxExtensionLoadAnywhere            EQU        $7FFFFFFF
  2033. gxExtensionLoadLast                EQU        $FFFFFF00
  2034.  
  2035. gxExtensionOptimizationType        EQU        'eopt'
  2036. gxExtensionOptimizationID        EQU        -27136
  2037. ;
  2038. ;    -----------------------------------------------
  2039. ;
  2040. ;    Resource types and IDs used by driver writers
  2041. ;
  2042. ;    ----------------------------------------------- 
  2043. ;
  2044.  
  2045. gxDriverUniversalOverrideID        EQU        -27648
  2046. gxDriverImagingOverrideID        EQU        -27647
  2047. gxDriverCompatibilityOverrideID    EQU        -27646
  2048.  
  2049. gxDriverFileFormatType            EQU        'pfil'
  2050. gxDriverFileFormatID            EQU        -27648
  2051.  
  2052. gxDestinationAdditionType        EQU        'dsta'
  2053. gxDestinationAdditionID            EQU        -27648
  2054. ;  IMAGING RESOURCES 
  2055. ;
  2056. ;    The imaging system resource specifies which imaging system a printer
  2057. ;        driver wishes to use. 
  2058. ;
  2059.  
  2060. gxImagingSystemSelectorType        EQU        'isys'
  2061. gxImagingSystemSelectorID        EQU        -27648
  2062. ;  'exft' resource ID -- exclude font list 
  2063.  
  2064. kExcludeFontListType            EQU        'exft'
  2065. kExcludeFontListID                EQU        -27648
  2066. ;  Resource for type for color matching 
  2067.  
  2068. gxColorMatchingDataType            EQU        'prof'
  2069. gxColorMatchingDataID            EQU        -27648
  2070. ;  Resource type and id for the tray count 
  2071.  
  2072. gxTrayCountDataType                EQU        'tray'
  2073. gxTrayCountDataID                EQU        -27648
  2074. ;  Resource type for the tray names 
  2075.  
  2076. gxTrayNameDataType                EQU        'tryn'
  2077. ;  Resource type for manual feed preferences, stored in DTP. 
  2078.  
  2079. gxManualFeedAlertPrefsType        EQU        'mfpr'
  2080. gxManualFeedAlertPrefsID        EQU        -27648
  2081. ;  Resource type for desktop printer output characteristics, stored in DTP. 
  2082.  
  2083. gxDriverOutputType                EQU        'outp'
  2084. gxDriverOutputTypeID            EQU        1
  2085. ;  IO Resources 
  2086. ;  Resource type and ID for default IO and buffering resources 
  2087.  
  2088. gxUniversalIOPrefsType            EQU        'iobm'
  2089. gxUniversalIOPrefsID            EQU        -27648
  2090. ;
  2091. ;    Resource types and IDs for default implementation of CaptureOutputDevice.
  2092. ;        The default implementation of CaptureOutputDevice only handles PAP devices 
  2093. ;
  2094.  
  2095. gxCaptureType                    EQU        'cpts'
  2096. gxCaptureStringID                EQU        -27648
  2097. gxReleaseStringID                EQU        -27647
  2098. gxUncapturedAppleTalkType        EQU        -27646
  2099. gxCapturedAppleTalkType            EQU        -27645
  2100. ;  Resource type and ID for custom halftone matrix 
  2101.  
  2102. gxCustomMatrixType                EQU        'dmat'
  2103. gxCustomMatrixID                EQU        -27648
  2104. ;  Resource type and ID for raster driver rendering preferences 
  2105.  
  2106. gxRasterPrefsType                EQU        'rdip'
  2107. gxRasterPrefsID                    EQU        -27648
  2108. ;  Resource type for specifiying a colorset 
  2109.  
  2110. gxColorSetResType                EQU        'crst'
  2111. ;  Resource type and ID for raster driver packaging preferences 
  2112.  
  2113. gxRasterPackType                EQU        'rpck'
  2114. gxRasterPackID                    EQU        -27648
  2115. ;  Resource type and ID for raster driver packaging options 
  2116.  
  2117. gxRasterNumNone                    EQU        0                    ; Number isn't output at all 
  2118. gxRasterNumDirect                EQU        1                    ; Lowest minWidth bytes as data 
  2119. gxRasterNumToASCII                EQU        2                    ; minWidth ASCII characters 
  2120.  
  2121. gxRasterPackOptionsType            EQU        'ropt'
  2122. gxRasterPackOptionsID            EQU        -27648
  2123. ;  Resource type for the PostScript imaging system procedure set control resource 
  2124.  
  2125. gxPostscriptProcSetControlType    EQU        'prec'
  2126. ;  Resource type for the PostScript imaging system printer font resource 
  2127.  
  2128. gxPostscriptPrinterFontType        EQU        'pfnt'
  2129. ;  Resource type and ID for the PostScript imaging system imaging preferences 
  2130.  
  2131. gxPostscriptPrefsType            EQU        'pdip'
  2132. gxPostscriptPrefsID                EQU        -27648
  2133. ;  Resource type and ID for the PostScript imaging system default scanning code 
  2134.  
  2135. gxPostscriptScanningType        EQU        'scan'
  2136. gxPostscriptScanningID            EQU        -27648
  2137. ;  Old Application Support Resources 
  2138.  
  2139. gxCustType                        EQU        'cust'
  2140. gxCustID                        EQU        -8192
  2141.  
  2142. gxReslType                        EQU        'resl'
  2143. gxReslID                        EQU        -8192
  2144.  
  2145. gxDiscreteResolution            EQU        0
  2146.  
  2147. gxStlDialogResID                EQU        -8192
  2148.  
  2149. gxJobDialogResID                EQU        -8191
  2150.  
  2151. gxScaleTableType                EQU        'stab'
  2152. gxDITLControlType                EQU        'dctl'
  2153. ;
  2154. ;    The default implementation of gxPrintDefault loads and
  2155. ;    PrValidates a print record stored in the following driver resource. 
  2156. ;
  2157.  
  2158. gxPrintRecordType                EQU        'PREC'
  2159. gxDefaultPrintRecordID            EQU        0
  2160. ;
  2161. ;    -----------------------------------------------
  2162. ;
  2163. ;    Resource types and IDs used in papertype files
  2164. ;
  2165. ;    -----------------------------------------------
  2166. ;
  2167. ;  Resource type and ID for driver papertypes placed in individual files 
  2168.  
  2169. gxSignatureType                    EQU        'sig '
  2170. gxPapertypeSignatureID            EQU        0
  2171. ;  Papertype creator types 
  2172.  
  2173. gxDrvrPaperType                    EQU        'drpt'
  2174. gxSysPaperType                    EQU        'sypt'                ; System paper type creator 
  2175. gxUserPaperType                    EQU        'uspt'                ; User paper type creator 
  2176.                                                             ; Driver creator types == driver file's creator value 
  2177. gxPaperTypeType                    EQU        'ptyp'
  2178. ;
  2179. ;********************************************************************
  2180. ;                    Start of old "GXPrintingMessages.h/a/p" interface file.
  2181. ;            *********************************************************************
  2182. ;
  2183. ;
  2184. ; ------------------------------------------------------------------------------
  2185. ;
  2186. ;                                    Constants and Types
  2187. ;
  2188. ;-------------------------------------------------------------------------------- 
  2189. ;
  2190. ;
  2191. ;
  2192. ;    ABSTRACT DATA TYPES
  2193. ;
  2194. ;
  2195.  
  2196.  
  2197. ;
  2198. ;
  2199. ;    DIALOG PANEL CONSTANTS AND TYPES
  2200. ;
  2201. ;
  2202. ; typedef long                             gxPanelEvent
  2203.  
  2204. ;  Dialog panel event equates 
  2205.  
  2206. gxPanelNoEvt                    EQU        0
  2207. gxPanelOpenEvt                    EQU        1                    ; Initialize and draw 
  2208. gxPanelCloseEvt                    EQU        2                    ; Your panel is going away (panel switchL, confirm or cancel) 
  2209. gxPanelHitEvt                    EQU        3                    ; There's a hit in your panel 
  2210. gxPanelActivateEvt                EQU        4                    ; The dialog window has just been activated 
  2211. gxPanelDeactivateEvt            EQU        5                    ; The dialog window is about to be deactivated 
  2212. gxPanelIconFocusEvt                EQU        6                    ; The focus changes from the panel to the icon list 
  2213. gxPanelPanelFocusEvt            EQU        7                    ; The focus changes from the icon list to the panel 
  2214. gxPanelFilterEvt                EQU        8                    ; Every event is filtered 
  2215. gxPanelCancelEvt                EQU        9                    ; The user has cancelled the dialog 
  2216. gxPanelConfirmEvt                EQU        10                    ; The user has confirmed the dialog 
  2217. gxPanelDialogEvt                EQU        11                    ; Event to be handle by dialoghandler 
  2218. gxPanelOtherEvt                    EQU        12                    ; osEvts, etc. 
  2219. gxPanelUserWillConfirmEvt        EQU        13                    ; User has selected confirm, time to parse panel interdependencies 
  2220. ;  Constants for panel responses to dialog handler calls 
  2221. ; typedef long                             gxPanelResult
  2222.  
  2223.  
  2224. gxPanelNoResult                    EQU        0
  2225. gxPanelCancelConfirmation        EQU        1                    ; Only valid from panelUserWillConfirmEvt - used to keep the dialog from going away 
  2226. ;  Panel event info record for FilterPanelEvent and HandlePanelEvent messages 
  2227. gxPanelInfoRecord        RECORD 0
  2228. panelEvt                 ds.l    1                ; offset: $0 (0)        ;  Why we were called 
  2229. panelResId                 ds.w    1                ; offset: $4 (4)        ;  'ppnl' resource ID of current panel 
  2230. pDlg                     ds.l    1                ; offset: $6 (6)        ;  Pointer to dialog 
  2231. theEvent                 ds.l    1                ; offset: $A (10)        ;  Pointer to event 
  2232. itemHit                     ds.w    1                ; offset: $E (14)        ;  Actual item number as Dialog Mgr thinks 
  2233. itemCount                 ds.w    1                ; offset: $10 (16)        ;  Number of items before your items 
  2234. evtAction                 ds.w    1                ; offset: $12 (18)        ;  Once this event is processed, the action that will result 
  2235. ;  (evtAction is only meaningful during filtering) 
  2236. errorStringId             ds.w    1                ; offset: $14 (20)        ;  STR ID of string to put in error alert (0 means no string) 
  2237. theFormat                 ds.l    1                ; offset: $16 (22)        ;  The current format (only meaningful in a format dialog) 
  2238. refCon                     ds.l    1                ; offset: $1A (26)        ;  refCon passed in PanelSetupRecord 
  2239. sizeof                     EQU *                    ; size:   $1E (30)
  2240.                         ENDR
  2241. ;  Constants for the evtAction field in PanelInfoRecord 
  2242.  
  2243. gxOtherAction                    EQU        0                    ; Current item will not change 
  2244. gxClosePanelAction                EQU        1                    ; Panel will be closed 
  2245. gxCancelDialogAction            EQU        2                    ; Dialog will be cancelled 
  2246. gxConfirmDialogAction            EQU        3                    ; Dialog will be confirmed 
  2247. ;  Constants for the panelKind field in gxPanelSetupRecord 
  2248. ; typedef long                             gxPrintingPanelKind
  2249.  
  2250. ;  The gxPanelSetupInfo structure is passed to GXSetupDialogPanel 
  2251. gxPanelSetupRecord        RECORD 0
  2252. panelKind                 ds.l    1                ; offset: $0 (0)
  2253. panelResId                 ds.w    1                ; offset: $4 (4)
  2254. resourceRefNum             ds.w    1                ; offset: $6 (6)
  2255. refCon                     ds.l    1                ; offset: $8 (8)
  2256. sizeof                     EQU *                    ; size:   $C (12)
  2257.                         ENDR
  2258.  
  2259. gxApplicationPanel                EQU        0
  2260. gxExtensionPanel                EQU        1
  2261. gxDriverPanel                    EQU        2
  2262. ;  Constants returned by gxParsePageRange message 
  2263. ; typedef long                             gxParsePageRangeResult
  2264.  
  2265.  
  2266. gxRangeNotParsed                EQU        0                    ; Default initial value 
  2267. gxRangeParsed                    EQU        1                    ; Range has been parsed 
  2268. gxRangeBadFromValue                EQU        2                    ; From value is bad 
  2269. gxRangeBadToValue                EQU        3                    ; To value is bad 
  2270. ;
  2271. ;
  2272. ;    STATUS-RELATED CONSTANTS AND TYPES
  2273. ;
  2274. ;
  2275. ;  Structure for status messages 
  2276. gxStatusRecord            RECORD 0
  2277. statusType                 ds.w    1                ; offset: $0 (0)        ;  One of the ids listed above (nonFatalError, etc. ) 
  2278. statusId                 ds.w    1                ; offset: $2 (2)        ;  Specific status (out of paper, etc.) 
  2279. statusAlertId             ds.w    1                ; offset: $4 (4)        ;     Printing alert ID (if any) for status 
  2280. statusOwner                 ds.l    1                ; offset: $6 (6)        ;  Creator type of status owner 
  2281. statResId                 ds.w    1                ; offset: $A (10)        ;  ID for 'stat' resource 
  2282. statResIndex             ds.w    1                ; offset: $C (12)        ;  Index into 'stat' resource for this status 
  2283. dialogResult             ds.w    1                ; offset: $E (14)        ;  ID of button string selected on dismissal of printing alert 
  2284. bufferLen                 ds.w    1                ; offset: $10 (16)        ;  Number of bytes in status buffer - total record size must be <= 512 
  2285. statusBuffer             ds.b    1                ; offset: $12 (18) <-- really an array of length one ;  User response from alert 
  2286.                          ORG 20
  2287. sizeof                     EQU *                    ; size:   $14 (20)
  2288.                         ENDR
  2289. ;  Constants for statusType field of gxStatusRecord 
  2290.  
  2291. gxNonFatalError                    EQU        1                    ; An error occurred, but the job can continue 
  2292. gxFatalError                    EQU        2                    ; A fatal error occurred-- halt job 
  2293. gxPrinterReady                    EQU        3                    ; Tells QDGX to leave alert mode 
  2294. gxUserAttention                    EQU        4                    ; Signals initiation of a modal alert 
  2295. gxUserAlert                        EQU        5                    ; Signals initiation of a moveable modal alert 
  2296. gxPageTransmission                EQU        6                    ; Signals page sent to printer, increments page count in strings to user 
  2297. gxOpenConnectionStatus            EQU        7                    ; Signals QDGX to begin animation on printer icon 
  2298. gxInformationalStatus            EQU        8                    ; Default status type, no side effects 
  2299. gxSpoolingPageStatus            EQU        9                    ; Signals page spooled, increments page count in spooling dialog 
  2300. gxEndStatus                        EQU        10                    ; Signals end of spooling 
  2301. gxPercentageStatus                EQU        11                    ; Signals QDGX as to the amount of the job which is currently complete 
  2302. ;  Structure for gxWriteStatusToDTPWindow message 
  2303. gxDisplayRecord            RECORD 0
  2304. useText                     ds.b    1                ; offset: $0 (0)        ;  Use text as opposed to a picture 
  2305. padByte                     ds.b    1                ; offset: $1 (1)
  2306. hPicture                 ds.l    1                ; offset: $2 (2)        ;  if !useText, the picture handle 
  2307. theText                     ds        Str255            ; offset: $6 (6)        ;  if useText, the text 
  2308. sizeof                     EQU *                    ; size:   $106 (262)
  2309.                         ENDR
  2310. ; -----------------------------------------------
  2311. ;  paper mapping-related constants and types...  
  2312. ; -----------------------------------------------
  2313. ; typedef long                             gxTrayMapping
  2314.  
  2315.  
  2316. gxDefaultTrayMapping            EQU        0
  2317. gxConfiguredTrayMapping            EQU        1
  2318. ;
  2319. ; ------------------------------------------------------------------------------
  2320. ;
  2321. ;                API Functions callable only from within message overrides
  2322. ;
  2323. ;-------------------------------------------------------------------------------- 
  2324. ;
  2325. ;
  2326. ;    Message Sending API Routines
  2327. ;
  2328.     IF ¨ GENERATINGPOWERPC THEN
  2329.     ENDIF
  2330. ;
  2331. ;
  2332. ;    How to use the GXPRINTINGDISPATCH macro...
  2333. ;    
  2334. ;    If your driver or extension is large, you may want to segment it
  2335. ;    across smaller boundaries than is permitted by the messaging system.
  2336. ;    Without using the Printing Manager's segmentation manager directly,
  2337. ;    the smallest segment you can create consists of the code to override
  2338. ;    a single message.  If you are overriding workhorse messages such as
  2339. ;    RenderPage, you may want to divide up the work among many functions
  2340. ;    distributed across several segments.  Here's how...
  2341. ;    
  2342. ;    The Printing Manager segment scheme involves the construction of a
  2343. ;    single 32-bit dispatch selector, which contains all the information
  2344. ;    necessary for the dispatcher to find a single routine.  It contains the
  2345. ;    segment's resource ID, and the offset within the segment which contains
  2346. ;    the start of the routine.  The GXPRINTINGDISPATCH macro will construct the
  2347. ;    dispatch selector for you, as well as the code to do the dispatch.
  2348. ;    
  2349. ;    Usually, it is convenient to start your segment with a long aligned jump table,
  2350. ;    beginning after the 4 byte header required by the Printing Manager.  The
  2351. ;    macro assumes this is the case and takes a 1-based routine selector from
  2352. ;    which it conmstructs the offset.
  2353. ;    
  2354. ;    For example, if your code is in resource 'pdvr' (print driver), ID=2
  2355. ;    at offset=12 (third routine in segment), you would declare your
  2356. ;    routine as follows:
  2357. ;    
  2358. ;    OSErr MyRenderingRoutine (long param1, Ptr param2)
  2359. ;        = GXPRINTINGDISPATCH(2, 3);
  2360. ;        
  2361. ;    Remember, ALL segment dispatches must return OSErr.  If your routine
  2362. ;    does not generate errors, you must still declare it to return OSErr
  2363. ;    and have the routine itself return noErr.
  2364. ;    
  2365. ;    An alternative way to call across segments is to call the GXPrintingDispatch
  2366. ;    function directly.  You must construct the 32-bit selector yourself and pass
  2367. ;    it as the first parameter.  This is usually not preferable since you don't get
  2368. ;    type-checking unless you declare a prototype as shown above, and your code
  2369. ;    isn't as easy to read.
  2370. ;    
  2371. ;    So given the above prototype, there are two ways to call the function:
  2372. ;    
  2373. ;        anErr = MyRenderingRoutine(p1, p2);            // Free type checking!
  2374. ;        
  2375. ;    or:
  2376. ;    
  2377. ;        #define kMyRenderRoutineSelector 0x0002000C
  2378. ;        anErr = GXPrintingDispatch(kMyRenderRoutineSelector, p1, p2);        // No type-checking!
  2379. ;    
  2380. ;    
  2381. ;    Both have the same effect.
  2382. ;
  2383. ;
  2384. ;
  2385. ; extern gxJob GXGetJob(void )
  2386. ;
  2387.     IF ¨ GENERATINGCFM THEN
  2388.         Macro
  2389.         _GXGetJob
  2390.             move.l              #$00010001,D0
  2391.             dc.w                $ABFE
  2392.         EndM
  2393.     ELSE
  2394.         IMPORT_CFM_FUNCTION GXGetJob
  2395.     ENDIF
  2396.  
  2397. ;
  2398. ; extern short GXGetMessageHandlerResFile(void )
  2399. ;
  2400.     IF ¨ GENERATINGCFM THEN
  2401.         Macro
  2402.         _GXGetMessageHandlerResFile
  2403.             move.l              #$00010002,D0
  2404.             dc.w                $ABFE
  2405.         EndM
  2406.     ELSE
  2407.         IMPORT_CFM_FUNCTION GXGetMessageHandlerResFile
  2408.     ENDIF
  2409.  
  2410. ;
  2411. ; extern Boolean GXSpoolingAborted(void )
  2412. ;
  2413.     IF ¨ GENERATINGCFM THEN
  2414.         Macro
  2415.         _GXSpoolingAborted
  2416.             move.l              #$00010003,D0
  2417.             dc.w                $ABFE
  2418.         EndM
  2419.     ELSE
  2420.         IMPORT_CFM_FUNCTION GXSpoolingAborted
  2421.     ENDIF
  2422.  
  2423. ;
  2424. ; extern OSErr GXJobIdle(void )
  2425. ;
  2426.     IF ¨ GENERATINGCFM THEN
  2427.         Macro
  2428.         _GXJobIdle
  2429.             move.l              #$00010004,D0
  2430.             dc.w                $ABFE
  2431.         EndM
  2432.     ELSE
  2433.         IMPORT_CFM_FUNCTION GXJobIdle
  2434.     ENDIF
  2435.  
  2436. ;
  2437. ; extern OSErr GXReportStatus(long statusID, unsigned long statusIndex)
  2438. ;
  2439.     IF ¨ GENERATINGCFM THEN
  2440.         Macro
  2441.         _GXReportStatus
  2442.             move.l              #$00010005,D0
  2443.             dc.w                $ABFE
  2444.         EndM
  2445.     ELSE
  2446.         IMPORT_CFM_FUNCTION GXReportStatus
  2447.     ENDIF
  2448.  
  2449. ;
  2450. ; extern OSErr GXAlertTheUser(gxStatusRecord *statusRec)
  2451. ;
  2452.     IF ¨ GENERATINGCFM THEN
  2453.         Macro
  2454.         _GXAlertTheUser
  2455.             move.l              #$00010006,D0
  2456.             dc.w                $ABFE
  2457.         EndM
  2458.     ELSE
  2459.         IMPORT_CFM_FUNCTION GXAlertTheUser
  2460.     ENDIF
  2461.  
  2462. ;
  2463. ; extern OSErr GXSetupDialogPanel(gxPanelSetupRecord *panelRec)
  2464. ;
  2465.     IF ¨ GENERATINGCFM THEN
  2466.         Macro
  2467.         _GXSetupDialogPanel
  2468.             move.l              #$00010007,D0
  2469.             dc.w                $ABFE
  2470.         EndM
  2471.     ELSE
  2472.         IMPORT_CFM_FUNCTION GXSetupDialogPanel
  2473.     ENDIF
  2474.  
  2475. ;
  2476. ; extern OSErr GXCountTrays(gxTrayIndex *numTrays)
  2477. ;
  2478.     IF ¨ GENERATINGCFM THEN
  2479.         Macro
  2480.         _GXCountTrays
  2481.             move.l              #$00010008,D0
  2482.             dc.w                $ABFE
  2483.         EndM
  2484.     ELSE
  2485.         IMPORT_CFM_FUNCTION GXCountTrays
  2486.     ENDIF
  2487.  
  2488. ;
  2489. ; extern OSErr GXGetTrayName(gxTrayIndex trayNumber, Str31 trayName)
  2490. ;
  2491.     IF ¨ GENERATINGCFM THEN
  2492.         Macro
  2493.         _GXGetTrayName
  2494.             move.l              #$00010009,D0
  2495.             dc.w                $ABFE
  2496.         EndM
  2497.     ELSE
  2498.         IMPORT_CFM_FUNCTION GXGetTrayName
  2499.     ENDIF
  2500.  
  2501. ;
  2502. ; extern OSErr GXSetTrayPaperType(gxTrayIndex whichTray, gxPaperType aPapertype)
  2503. ;
  2504.     IF ¨ GENERATINGCFM THEN
  2505.         Macro
  2506.         _GXSetTrayPaperType
  2507.             move.l              #$0001000A,D0
  2508.             dc.w                $ABFE
  2509.         EndM
  2510.     ELSE
  2511.         IMPORT_CFM_FUNCTION GXSetTrayPaperType
  2512.     ENDIF
  2513.  
  2514. ;
  2515. ; extern OSErr GXGetTrayPaperType(gxTrayIndex whichTray, gxPaperType aPapertype)
  2516. ;
  2517.     IF ¨ GENERATINGCFM THEN
  2518.         Macro
  2519.         _GXGetTrayPaperType
  2520.             move.l              #$0001000B,D0
  2521.             dc.w                $ABFE
  2522.         EndM
  2523.     ELSE
  2524.         IMPORT_CFM_FUNCTION GXGetTrayPaperType
  2525.     ENDIF
  2526.  
  2527. ;
  2528. ; extern OSErr GXGetTrayMapping(gxTrayMapping *trayMapping)
  2529. ;
  2530.     IF ¨ GENERATINGCFM THEN
  2531.         Macro
  2532.         _GXGetTrayMapping
  2533.             move.l              #$0001000C,D0
  2534.             dc.w                $ABFE
  2535.         EndM
  2536.     ELSE
  2537.         IMPORT_CFM_FUNCTION GXGetTrayMapping
  2538.     ENDIF
  2539.  
  2540. ;
  2541. ; extern void GXCleanupStartJob(void )
  2542. ;
  2543.     IF ¨ GENERATINGCFM THEN
  2544.         Macro
  2545.         _GXCleanupStartJob
  2546.             move.l              #$0001000D,D0
  2547.             dc.w                $ABFE
  2548.         EndM
  2549.     ELSE
  2550.         IMPORT_CFM_FUNCTION GXCleanupStartJob
  2551.     ENDIF
  2552.  
  2553. ;
  2554. ; extern void GXCleanupStartPage(void )
  2555. ;
  2556.     IF ¨ GENERATINGCFM THEN
  2557.         Macro
  2558.         _GXCleanupStartPage
  2559.             move.l              #$0001000E,D0
  2560.             dc.w                $ABFE
  2561.         EndM
  2562.     ELSE
  2563.         IMPORT_CFM_FUNCTION GXCleanupStartPage
  2564.     ENDIF
  2565.  
  2566. ;
  2567. ; extern void GXCleanupOpenConnection(void )
  2568. ;
  2569.     IF ¨ GENERATINGCFM THEN
  2570.         Macro
  2571.         _GXCleanupOpenConnection
  2572.             move.l              #$0001000F,D0
  2573.             dc.w                $ABFE
  2574.         EndM
  2575.     ELSE
  2576.         IMPORT_CFM_FUNCTION GXCleanupOpenConnection
  2577.     ENDIF
  2578.  
  2579. ;
  2580. ; extern void GXCleanupStartSendPage(void )
  2581. ;
  2582.     IF ¨ GENERATINGCFM THEN
  2583.         Macro
  2584.         _GXCleanupStartSendPage
  2585.             move.l              #$00010010,D0
  2586.             dc.w                $ABFE
  2587.         EndM
  2588.     ELSE
  2589.         IMPORT_CFM_FUNCTION GXCleanupStartSendPage
  2590.     ENDIF
  2591.  
  2592. ;
  2593. ; ------------------------------------------------------------------------------
  2594. ;
  2595. ;                    Constants and types for Universal Printing Messages
  2596. ;
  2597. ;-------------------------------------------------------------------------------- 
  2598. ;
  2599. ;  Options for gxCreateSpoolFile message 
  2600.  
  2601. gxNoCreateOptions                EQU        $00000000            ; Just create the file 
  2602. gxInhibitAlias                    EQU        $00000001            ; Do not create an alias in the PMD folder 
  2603. gxInhibitUniqueName                EQU        $00000002            ; Do not append to the filename to make it unique 
  2604. gxResolveBitmapAlias            EQU        $00000004            ; Resolve bitmap aliases and duplicate data in file 
  2605. ;  Options for gxCloseSpoolFile message 
  2606.  
  2607. gxNoCloseOptions                EQU        $00000000            ; Just close the file 
  2608. gxDeleteOnClose                    EQU        $00000001            ; Delete the file rather than closing it 
  2609. gxUpdateJobData                    EQU        $00000002            ; Write current job information into file prior to closing 
  2610. gxMakeRemoteFile                EQU        $00000004            ; Mark job as a remote file 
  2611. ;  Options for gxCreateImageFile message 
  2612.  
  2613. gxNoImageFile                    EQU        $00000000            ; Don't create image file 
  2614. gxMakeImageFile                    EQU        $00000001            ; Create an image file 
  2615. gxEachPlane                        EQU        $00000002            ; Only save up planes before rewinding 
  2616. gxEachPage                        EQU        $00000004            ; Save up entire pages before rewinding 
  2617. gxEntireFile                    EQU        $00000006            ; Save up the entire file before rewinding 
  2618. ;  Options for gxBufferData message 
  2619.  
  2620. gxNoBufferOptions                EQU        $00000000
  2621. gxMakeBufferHex                    EQU        $00000001
  2622. gxDontSplitBuffer                EQU        $00000002
  2623. ;  Structure for gxDumpBuffer and gxFreeBuffer messages 
  2624. gxPrintingBuffer        RECORD 0
  2625. size                     ds.l    1                ; offset: $0 (0)        ;  Size of buffer in bytes 
  2626. userData                 ds.l    1                ; offset: $4 (4)        ;  Client assigned id for the buffer 
  2627. data                     ds.b    1                ; offset: $8 (8) <-- really an array of length one ;  Array of size bytes 
  2628.                          ORG 10
  2629. sizeof                     EQU *                    ; size:   $A (10)
  2630.                         ENDR
  2631. ;  Structure for gxRenderPage message 
  2632. gxPageInfoRecord        RECORD 0
  2633. docPageNum                 ds.l    1                ; offset: $0 (0)        ;  Number of page being printed 
  2634. copyNum                     ds.l    1                ; offset: $4 (4)        ;  Copy number being printed 
  2635. formatChanged             ds.b    1                ; offset: $8 (8)        ;  True if format changed from last page 
  2636. pageChanged                 ds.b    1                ; offset: $9 (9)        ;  True if page contents changed from last page 
  2637. internalUse                 ds.l    1                ; offset: $A (10)        ;  Private 
  2638. sizeof                     EQU *                    ; size:   $E (14)
  2639.                         ENDR
  2640. ;
  2641. ; ------------------------------------------------------------------------------
  2642. ;
  2643. ;                                Universal Printing Messages
  2644. ;
  2645. ;-------------------------------------------------------------------------------- 
  2646. ;
  2647.     ENDIF
  2648.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  2649.     ENDIF
  2650.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  2651.     ENDIF
  2652.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  2653.     ENDIF
  2654.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  2655. ;
  2656. ;******************************************************************
  2657. ;                    Start of old "GXPrintingErrors.h/a/p" interface file.
  2658. ;            *******************************************************************
  2659. ;
  2660.  
  2661. gxPrintingResultBase            EQU        -510                ;First QuickDraw GX printing error code.
  2662. ; RESULT CODES FOR QUICKDRAW GX PRINTING OPERATIONS
  2663.  
  2664. gxAioTimeout                    EQU        -510                ;-510 : Timeout condition occurred during operation
  2665. gxAioBadRqstState                EQU        -511                ;-511 : Async I/O request in invalid state for operation
  2666. gxAioBadConn                    EQU        -512                ;-512 : Invalid Async I/O connection refnum
  2667. gxAioInvalidXfer                EQU        -513                ;-513 : Read data transfer structure contained bad values
  2668. gxAioNoRqstBlks                    EQU        -514                ;-514 : No available request blocks to process request
  2669. gxAioNoDataXfer                    EQU        -515                ;-515 : Data transfer structure pointer not specified
  2670. gxAioTooManyAutos                EQU        -516                ;-516 : Auto status request already active
  2671. gxAioNoAutoStat                    EQU        -517                ;-517 : Connection not configured for auto status
  2672. gxAioBadRqstID                    EQU        -518                ;-518 : Invalid I/O request identifier
  2673. gxAioCantKill                    EQU        -519                ;-519 : Comm. protocol doesn't support I/O term
  2674. gxAioAlreadyExists                EQU        -520                ;-520 : Protocol spec. data already specified
  2675. gxAioCantFind                    EQU        -521                ;-521 : Protocol spec. data does not exist
  2676. gxAioDeviceDisconn                EQU        -522                ;-522 : Machine disconnected from printer
  2677. gxAioNotImplemented                EQU        -523                ;-523 : Function not implemented
  2678. gxAioOpenPending                EQU        -524                ;-524 : Opening a connection for protocol, but another open pending
  2679. gxAioNoProtocolData                EQU        -525                ;-525 : No protocol specific data specified in request
  2680. gxAioRqstKilled                    EQU        -526                ;-526 : I/O request was terminated
  2681. gxBadBaudRate                    EQU        -527                ;-527 : Invalid baud rate specified
  2682. gxBadParity                        EQU        -528                ;-528 : Invalid parity specified
  2683. gxBadStopBits                    EQU        -529                ;-529 : Invalid stop bits specified
  2684. gxBadDataBits                    EQU        -530                ;-530 : Invalid data bits specified
  2685. gxBadPrinterName                EQU        -531                ;-531 : Bad printer name specified
  2686. gxAioBadMsgType                    EQU        -532                ;-532 : Bad masType field in transfer info structure
  2687. gxAioCantFindDevice                EQU        -533                ;-533 : Cannot locate target device
  2688. gxAioOutOfSeq                    EQU        -534                ;-534 : Non-atomic SCSI requests submitted out of sequence
  2689. gxPrIOAbortErr                    EQU        -535                ;-535 : I/O operation aborted
  2690. gxPrUserAbortErr                EQU        -536                ;-536 : User aborted
  2691. gxCantAddPanelsNowErr            EQU        -537                ;-537 : Can only add panels during driver switch or dialog setup
  2692. gxBadxdtlKeyErr                    EQU        -538                ;-538 : Unknown key for xdtl - must be radiobutton, etc
  2693. gxXdtlItemOutOfRangeErr            EQU        -539                ;-539 : Referenced item does not belong to panel
  2694. gxNoActionButtonErr                EQU        -540                ;-540 : Action button is nil
  2695. gxTitlesTooLongErr                EQU        -541                ;-541 : Length of buttons exceeds alert maximum width
  2696. gxUnknownAlertVersionErr        EQU        -542                ;-542 : Bad version for printing alerts
  2697. gxGBBufferTooSmallErr            EQU        -543                ;-543 : Buffer too small.
  2698. gxInvalidPenTable                EQU        -544                ;-544 : Invalid vector driver pen table.
  2699. gxIncompletePrintFileErr        EQU        -545                ;-545 : Print file was not completely spooled
  2700. gxCrashedPrintFileErr            EQU        -546                ;-546 : Print file is corrupted
  2701. gxInvalidPrintFileVersion        EQU        -547                ;-547 : Print file is incompatible with current QuickDraw GX version
  2702. gxSegmentLoadFailedErr            EQU        -548                ;-548 : Segment loader error
  2703. gxExtensionNotFoundErr            EQU        -549                ;-549 : Requested printing extension could not be found
  2704. gxDriverVersionErr                EQU        -550                ;-550 : Driver too new for current version of QuickDraw GX
  2705. gxImagingSystemVersionErr        EQU        -551                ;-551 : Imaging system too new for current version of QuickDraw GX
  2706. gxFlattenVersionTooNew            EQU        -552                ;-552 : Flattened object format too new for current version of QDGX
  2707. gxPaperTypeNotFound                EQU        -553                ;-553 : Requested papertype could not be found
  2708. gxNoSuchPTGroup                    EQU        -554                ;-554 : Requested papertype group could not be found
  2709. gxNotEnoughPrinterMemory        EQU        -555                ;-555 : Printer does not have enough memory for fonts in document
  2710. gxDuplicatePanelNameErr            EQU        -556                ;-556 : Attempt to add more than 10 panels with the same name
  2711. gxExtensionVersionErr            EQU        -557                ;-557 : Extension too new for current version of QuickDraw GX
  2712.     ENDIF
  2713.     ENDIF ; __GXPRINTING__ 
  2714.  
  2715.